summaryrefslogtreecommitdiffstats
path: root/fs/cifs/sess.c
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/cifs/sess.c
parentd9d5d8df953a98621be5b8889e05043d6e32052e (diff)
downloadlinux-47c78b7f40a9931a264e3c9bddccacdf8dfb9a30.tar.bz2
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/cifs/sess.c')
0 files changed, 0 insertions, 0 deletions