aboutsummaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2018-11-30 10:04:08 +1100
committerJeff Layton <[email protected]>2018-11-30 11:26:12 -0500
commitd6367d6241371566597c9ab6efe4de0abf254eed (patch)
tree9c7443570a1cd0bb05d2ddfbcb16b2383851cc35 /security/selinux/hooks.c
parent4316c3c685f5bd949e75eb99df09a18e45cc8e5c (diff)
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 <[email protected]> Reviewed-by: J. Bruce Fields <[email protected]> Signed-off-by: Jeff Layton <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions