]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/locks.c
net/act_pedit: fix an error code
[karo-tx-linux.git] / fs / locks.c
index 26811321d39b8d404046100ac3dcc4b5e04f5cc7..af2031a1fcff14fcfb05e108b9d49bfc4a74685f 100644 (file)
@@ -2504,7 +2504,7 @@ locks_remove_flock(struct file *filp, struct file_lock_context *flctx)
                .fl_owner = filp,
                .fl_pid = current->tgid,
                .fl_file = filp,
-               .fl_flags = FL_FLOCK,
+               .fl_flags = FL_FLOCK | FL_CLOSE,
                .fl_type = F_UNLCK,
                .fl_end = OFFSET_MAX,
        };