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)
commitea7b4887e7266b93fa0c203cc452a926a0fef4f0
tree35a3b63e844b403077db71cdc374b53297ec2e02
parent985e4ff016b5f3d95c12fe8073d1df89300dab3d
CIFS: Fix cifs_do_create error hadnling

Commit d2c127197dfc0b2bae62a52e1e0d3e3ff493919e 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