]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Fix cifs_do_create error hadnling
authorPavel Shilovsky <pshilovsky@samba.org>
Fri, 17 Aug 2012 14:02:19 +0000 (18:02 +0400)
committerSteve French <smfrench@gmail.com>
Mon, 20 Aug 2012 03:30:18 +0000 (22:30 -0500)
commit932a43b9e89f51ccb56dda62f31c205c80879785
tree35a3b63e844b403077db71cdc374b53297ec2e02
parentbeb4ba44c676b7c596235ec6d7498474b8b1466a
CIFS: Fix cifs_do_create error hadnling

Commit e5e110caf5d7a9464f0f1d36d7a08ea43f287aa1 caused a regression
in cifs_do_create error handling. Fix this by closing a file handle
in the case of a get_inode_info(_unix) error. Also remove unnecessary
checks for newinode being NULL.

Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/dir.c