commit | fb92e57e92999dcd0f4620c1f02f07c2f9c8438f | [log] [tgz] |
---|---|---|
author | Sujit Reddy Thumma <sthumma@codeaurora.org> | Fri Jun 29 13:50:22 2012 +0530 |
committer | Sujit Reddy Thumma <sthumma@codeaurora.org> | Fri Jun 29 14:01:23 2012 +0530 |
tree | d56bb860113ebfaa8d49f58ad2e215b3bfbb12c4 | |
parent | ef38094d89e5e0ccffff3edbea65d86661e7acb6 [diff] |
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: Sujit Reddy Thumma <sthumma@codeaurora.org>