diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-06-16 13:40:17 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2010-06-16 13:40:17 -0400 |
commit | 47c78b7f40a9931a264e3c9bddccacdf8dfb9a30 (patch) | |
tree | 2b4cc492dee33f47836b252a4a1819006e5d0644 /fs/cifs/sess.c | |
parent | d9d5d8df953a98621be5b8889e05043d6e32052e (diff) |
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