]> git.baikalelectronics.ru Git - kernel.git/commit
exfat: avoid incorrectly releasing for root inode
authorChen Li <chenli@uniontech.com>
Wed, 9 Jun 2021 03:48:55 +0000 (11:48 +0800)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 28 Jun 2021 12:49:47 +0000 (21:49 +0900)
commitfd97d585ba23664dd75789fa227c8a818102d644
tree8dadaffb22406e7dd89662c29055e2e5bbaa11d6
parent00b75b3c3f0be90bc470e6a7c2a896c151d7e944
exfat: avoid incorrectly releasing for root inode

In d_make_root, when we fail to allocate dentry for root inode,
we will iput root inode and returned value is NULL in this function.

So we do not need to release this inode again at d_make_root's caller.

Signed-off-by: Chen Li <chenli@uniontech.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
fs/exfat/super.c