locks: missing unlock on error in generic_add_lease()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Nov 2013 07:56:27 +0000 (10:56 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 13 Nov 2013 12:30:53 +0000 (07:30 -0500)
commit4fdb793ffe262cfc0b796d3b2cd05ca3b687deb9
treef2f80c2e973ef4af92d8eec6a05f9596e6c0f58b
parent7f62656be8a8ef14c168db2d98021fb9c8cc1076
locks: missing unlock on error in generic_add_lease()

We should unlock here before returning.

Fixes: df4e8d2c1d2b ('locks: implement delegations')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/locks.c