Commit d63b8289 authored by Trond Myklebust's avatar Trond Myklebust

VFS: Fix structure initialization in locks_remove_flock()

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 335a6591
......@@ -1865,8 +1865,13 @@ void locks_remove_flock(struct file *filp)
return;
if (filp->f_op && filp->f_op->flock) {
struct file_lock fl = { .fl_flags = FL_FLOCK,
.fl_type = F_UNLCK };
struct file_lock fl = {
.fl_pid = current->tgid,
.fl_file = filp,
.fl_flags = FL_FLOCK,
.fl_type = F_UNLCK,
.fl_end = OFFSET_MAX,
};
filp->f_op->flock(filp, F_SETLKW, &fl);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment