diff --git a/fs/locks.c b/fs/locks.c index f7daa5f48949..accbc3c0506f 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1418,7 +1418,7 @@ int fcntl_setlease(unsigned int fd, struct file *filp, long arg) lock_kernel(); error = __setlease(filp, arg, &flp); - if (error) + if (error || arg == F_UNLCK) goto out_unlock; error = fasync_helper(fd, filp, 1, &flp->fl_fasync);