summaryrefslogtreecommitdiffstats
path: root/fs/ntfs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-06-16 13:40:17 -0400
committerJeff Layton <jlayton@redhat.com>2010-06-16 13:40:17 -0400
commit47c78b7f40a9931a264e3c9bddccacdf8dfb9a30 (patch)
tree2b4cc492dee33f47836b252a4a1819006e5d0644 /fs/ntfs
parentd9d5d8df953a98621be5b8889e05043d6e32052e (diff)
downloadlinux-stable-47c78b7f40a9931a264e3c9bddccacdf8dfb9a30.tar.gz
linux-stable-47c78b7f40a9931a264e3c9bddccacdf8dfb9a30.tar.bz2
linux-stable-47c78b7f40a9931a264e3c9bddccacdf8dfb9a30.zip
cifs: don't call cifs_new_fileinfo unless cifs_open succeeds
It's currently possible for cifs_open to fail after it has already called cifs_new_fileinfo. In that situation, the new fileinfo will be leaked as the caller doesn't call fput. That in turn leads to a busy inodes after umount problem since the fileinfo holds an extra inode reference now. Shuffle cifs_open around a bit so that it only calls cifs_new_fileinfo if it's going to succeed. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-and-Tested-by: Suresh Jayaraman <sjayaraman@suse.de>
Diffstat (limited to 'fs/ntfs')
0 files changed, 0 insertions, 0 deletions