]> Git Repo - linux.git/commit - fs/cifs/inode.c
cifs: when renaming don't try to unlink negative dentry
authorJeff Layton <[email protected]>
Fri, 17 Apr 2009 15:45:30 +0000 (11:45 -0400)
committerSteve French <[email protected]>
Fri, 17 Apr 2009 21:08:15 +0000 (21:08 +0000)
commitfc6f394332ef1bf6ff5fbeaba0f2cd7a3c7971b6
tree86cccb6f28f84355d348bad27fa55d5c377d6660
parent22c9d52bc03b880045ab1081890a38f11b272ae7
cifs: when renaming don't try to unlink negative dentry

When attempting to rename a file on a read-only share, the kernel can
call cifs_unlink on a negative dentry, which causes an oops. Only try
to unlink the file if it's a positive dentry.

Signed-off-by: Jeff Layton <[email protected]>
Tested-by: Shirish Pargaonkar <[email protected]>
CC: Stable <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/cifs/inode.c
This page took 0.043421 seconds and 4 git commands to generate.