]> 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)
commit3ca9077c1b025015deac2ccb042e1a3c2bab12db
tree35a3b63e844b403077db71cdc374b53297ec2e02
parent6b9d7b92adba096a5412ce849b9afd2106eecb18
CIFS: Fix cifs_do_create error hadnling

Commit 49cdc3d10d7fea9cd486a9d26cea6bbda5ddefba 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