vfs: nameidata_to_filp(): don't throw away file on error
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 21 May 2012 15:30:18 +0000 (17:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Jun 2012 16:12:01 +0000 (12:12 -0400)
commit50ee93afcaa970620d1fb5a9894109a2ab152868
tree40aa31801f8b60f9f67ba168e438d4c947d502b3
parent91daee988db38b0207eec719a3160b163c077007
vfs: nameidata_to_filp(): don't throw away file on error

If open fails, don't put the file.  This allows it to be reused if open needs to
be retried.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/open.c