diff options
author | NeilBrown <neilb@suse.com> | 2018-11-30 02:04:08 +0300 |
---|---|---|
committer | Jeff Layton <jlayton@kernel.org> | 2018-11-30 19:26:12 +0300 |
commit | d6367d6241371566597c9ab6efe4de0abf254eed (patch) | |
tree | 9c7443570a1cd0bb05d2ddfbcb16b2383851cc35 /net | |
parent | 4316c3c685f5bd949e75eb99df09a18e45cc8e5c (diff) | |
download | linux-d6367d6241371566597c9ab6efe4de0abf254eed.tar.xz |
fs/locks: use properly initialized file_lock when unlocking.
Both locks_remove_posix() and locks_remove_flock() use a
struct file_lock without calling locks_init_lock() on it.
This means the various list_heads are not initialized, which
will become a problem with a later patch.
So change them both to initialize properly. For flock locks,
this involves using flock_make_lock(), and changing it to
allow a file_lock to be passed in, so memory allocation isn't
always needed.
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions