]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix filp leak in cifs_atomic_open()
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 16 Sep 2013 12:51:59 +0000 (14:51 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 16 Sep 2013 23:17:24 +0000 (19:17 -0400)
commit634001ec6eb4ff6da6383ecdfd352b0adbda170e
tree7cb3e3a9742cee2298e90db10d1f07b517cf66c8
parentee3594c5bf5dfcdf7ae838252f10623022acb48f
cifs: fix filp leak in cifs_atomic_open()

If an error occurs after having called finish_open() then fput() needs to
be called on the already opened file.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Steve French <sfrench@samba.org>
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cifs/dir.c