Signed-off-by: Gabriel Krisman Bertazi <krisman@xxxxxxxxxxxxx> --- 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 88433310a1dd..27e93305172b 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; } -- 2.20.1