]> git.baikalelectronics.ru Git - kernel.git/commit
exfat: fix possible memory leak in exfat_find()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 May 2020 14:25:54 +0000 (14:25 +0000)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 18 May 2020 02:51:44 +0000 (11:51 +0900)
commite3b4c0cb6b1a73e0a6145bee0ae432954749e993
tree92ff574e922bcfd58c526705fea643c9b75c57d0
parent5c2cfadafbfdffc596399ceb87fa59b632b11c4a
exfat: fix possible memory leak in exfat_find()

'es' is malloced from exfat_get_dentry_set() in exfat_find() and should
be freed before leaving from the error handling cases, otherwise it will
cause memory leak.

Fixes: e2113e641174 ("exfat: add inode operations")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/namei.c