Skip to content
Commit 9eeaa2d7 authored by Chen Li's avatar Chen Li Committed by Greg Kroah-Hartman
Browse files

exfat: avoid incorrectly releasing for root inode



commit 839a534f upstream.

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: default avatarChen Li <chenli@uniontech.com>
Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
Cc: Tadeusz Struk <tadeusz.struk@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ae8ec5ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment