exfat: Fix potential use after free in exfat_load_upcase_table()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Jun 2020 14:16:29 +0000 (17:16 +0300)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 9 Jun 2020 07:50:18 +0000 (16:50 +0900)
commitfc961522ddbdf00254dd03b677627139cc1f68bc
treeb81f898f8dac5429084e0abb43b96c330bd6ff34
parenta949824f01f3b39f737d77aed6cba47aced09319
exfat: Fix potential use after free in exfat_load_upcase_table()

This code calls brelse(bh) and then dereferences "bh" on the next line
resulting in a possible use after free.  The brelse() should just be
moved down a line.

Fixes: b676fdbcf4c8 ("exfat: standardize checksum calculation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/nls.c