]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
audit: Remove pointless check in insert_hash()
authorJan Kara <jack@suse.cz>
Mon, 12 Nov 2018 14:54:48 +0000 (09:54 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 12 Nov 2018 14:54:48 +0000 (09:54 -0500)
commit8cd0feb5234ccda3c15de35b40c8010a406dfc03
tree1b0250ff689bfbdd9eb11b124ff5a06abcc46da1
parentd31b326d3ce7b1ff2ec36470dfcccb14a6c3e04e
audit: Remove pointless check in insert_hash()

The audit_tree_group->mark_mutex is held all the time while we create
the fsnotify mark, add it to the inode, and insert chunk into the hash.
Hence mark cannot get detached during this time and so the check whether
the mark is attached in insert_hash() is pointless.

Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit_tree.c