From c554f5558cb37cf640048d693be81bf3b9dff150 Mon Sep 17 00:00:00 2001 From: Gabriel Krisman Bertazi Date: Sun, 28 Apr 2019 15:04:28 -0400 Subject: [PATCH] e2p: encoding: fix default flags lookup Signed-off-by: Gabriel Krisman Bertazi Signed-off-by: Theodore Ts'o --- lib/e2p/encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/e2p/encoding.c b/lib/e2p/encoding.c index 8843331..27e9330 100644 --- a/lib/e2p/encoding.c +++ b/lib/e2p/encoding.c @@ -67,7 +67,7 @@ int e2p_get_encoding_flags(int encoding) for (i = 0 ; i < ARRAY_SIZE(ext4_encoding_map); i++) if (ext4_encoding_map[i].encoding_magic == encoding) - return ext4_encoding_map[encoding].default_flags; + return ext4_encoding_map[i].default_flags; return 0; } -- 1.8.3.1