diff options
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/locks.c b/fs/locks.c index 957775ba6468..b07e6e6f819b 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -1665,8 +1665,6 @@ int fcntl_getlk(struct file *filp, struct flock __user *l) | |||
1665 | 1665 | ||
1666 | if (filp->f_op && filp->f_op->lock) { | 1666 | if (filp->f_op && filp->f_op->lock) { |
1667 | error = filp->f_op->lock(filp, F_GETLK, &file_lock); | 1667 | error = filp->f_op->lock(filp, F_GETLK, &file_lock); |
1668 | if (file_lock.fl_ops && file_lock.fl_ops->fl_release_private) | ||
1669 | file_lock.fl_ops->fl_release_private(&file_lock); | ||
1670 | if (error < 0) | 1668 | if (error < 0) |
1671 | goto out; | 1669 | goto out; |
1672 | else | 1670 | else |
@@ -1804,8 +1802,6 @@ int fcntl_getlk64(struct file *filp, struct flock64 __user *l) | |||
1804 | 1802 | ||
1805 | if (filp->f_op && filp->f_op->lock) { | 1803 | if (filp->f_op && filp->f_op->lock) { |
1806 | error = filp->f_op->lock(filp, F_GETLK, &file_lock); | 1804 | error = filp->f_op->lock(filp, F_GETLK, &file_lock); |
1807 | if (file_lock.fl_ops && file_lock.fl_ops->fl_release_private) | ||
1808 | file_lock.fl_ops->fl_release_private(&file_lock); | ||
1809 | if (error < 0) | 1805 | if (error < 0) |
1810 | goto out; | 1806 | goto out; |
1811 | else | 1807 | else |