]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit43b09a8392f90735988dfbfabc2c2a5f29c00031
treeb81f898f8dac5429084e0abb43b96c330bd6ff34
parent58a0edcf7ef224fa3f3e00001f1f1de98a97e699
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