Commit fb92e57e authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma
Browse files

fs: yaffs2: Add null pointer check before dereferencing inode



In yaffs_rename(), d_entry->d_inode can be NULL if the
target directory doesn't exist or if there is any race
condition such as target directory being deleted while
renaming another directory to target directory name.
Avoid dereferencing d_inode in such cases.

CRs-Fixed: 360748
Change-Id: If95b4992f1056fea78f2e1bd54253cd5c8aac93d
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent ef38094d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment