VFS: Fix structure initialization in locks_remove_flock() Signed-off-by: Trond Myklebust --- locks.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) Index: linux-2.6.11/fs/locks.c =================================================================== --- linux-2.6.11.orig/fs/locks.c +++ linux-2.6.11/fs/locks.c @@ -1865,8 +1865,13 @@ void locks_remove_flock(struct file *fil 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); }