]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/locks.c
locks: make ->lock release private data before returning in GETLK case
[mirror_ubuntu-hirsute-kernel.git] / fs / locks.c
index 957775ba6468faa1e36304a8e9834729af76f849..b07e6e6f819b62e2d944f800046591cd00acd928 100644 (file)
@@ -1665,8 +1665,6 @@ int fcntl_getlk(struct file *filp, struct flock __user *l)
 
        if (filp->f_op && filp->f_op->lock) {
                error = filp->f_op->lock(filp, F_GETLK, &file_lock);
-               if (file_lock.fl_ops && file_lock.fl_ops->fl_release_private)
-                       file_lock.fl_ops->fl_release_private(&file_lock);
                if (error < 0)
                        goto out;
                else
@@ -1804,8 +1802,6 @@ int fcntl_getlk64(struct file *filp, struct flock64 __user *l)
 
        if (filp->f_op && filp->f_op->lock) {
                error = filp->f_op->lock(filp, F_GETLK, &file_lock);
-               if (file_lock.fl_ops && file_lock.fl_ops->fl_release_private)
-                       file_lock.fl_ops->fl_release_private(&file_lock);
                if (error < 0)
                        goto out;
                else