CIFS: Simplify setlk error handling for mandatory locking
authorPavel Shilovsky <piastry@etersoft.ru>
Sat, 29 Oct 2011 13:17:58 +0000 (17:17 +0400)
committerSteve French <sfrench@us.ibm.com>
Fri, 4 Nov 2011 05:53:15 +0000 (00:53 -0500)
Now we allocate a lock structure at first, then we request to the server
and save the lock if server returned OK though void function - it prevents
the situation when we locked a file on the server and then return -ENOMEM
from setlk.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Acked-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>

No differences found