diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-13 10:56:27 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-11-13 07:30:53 -0500 |
commit | 4fdb793ffe262cfc0b796d3b2cd05ca3b687deb9 (patch) | |
tree | f2f80c2e973ef4af92d8eec6a05f9596e6c0f58b /fs/locks.c | |
parent | 7f62656be8a8ef14c168db2d98021fb9c8cc1076 (diff) | |
download | op-kernel-dev-4fdb793ffe262cfc0b796d3b2cd05ca3b687deb9.zip op-kernel-dev-4fdb793ffe262cfc0b796d3b2cd05ca3b687deb9.tar.gz |
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>
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1494,6 +1494,7 @@ static int generic_add_lease(struct file *filp, long arg, struct file_lock **flp if (is_deleg && arg == F_WRLCK) { /* Write delegations are not currently supported: */ + mutex_unlock(&inode->i_mutex); WARN_ON_ONCE(1); return -EINVAL; } |