diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-05-07 11:28:31 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-05-08 17:12:47 -0500 |
commit | c2b93e0699723700f886ce17bb65ffd771195a6d (patch) | |
tree | 174d082487c61ca59e166c5f0b906595f6facc5a /fs/fcntl.c | |
parent | ebb37277796269da36a8bc5d72ed1e8e1fb7d34b (diff) | |
download | linux-3.10-c2b93e0699723700f886ce17bb65ffd771195a6d.tar.gz linux-3.10-c2b93e0699723700f886ce17bb65ffd771195a6d.tar.bz2 linux-3.10-c2b93e0699723700f886ce17bb65ffd771195a6d.zip |
cifs: only set ops for inodes in I_NEW state
It's generally not safe to reset the inode ops once they've been set. In
the case where the inode was originally thought to be a directory and
then later found to be a DFS referral, this can lead to an oops when we
try to trigger an inode op on it after changing the ops to the blank
referral operations.
Cc: <stable@vger.kernel.org>
Reported-and-Tested-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions