]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-ima: remove new_map from dm_ima_measure_on_device_clear
authorBenjamin Marzinski <bmarzins@redhat.com>
Wed, 29 Apr 2026 20:21:04 +0000 (16:21 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 4 May 2026 12:53:19 +0000 (14:53 +0200)
commitc90decb190bcae6a20b3aa8575f69eef543930e5
tree6793005c472530b2947e6e8c30e46cabe4f49405
parent5534cac9b56d8f51343718f71737a69d40cb2bb9
dm-ima: remove new_map from dm_ima_measure_on_device_clear

Now that two processes can't modify md->ima in
dm_ima_measure_on_device_clear() at the same time, there's no need to
track if an inactive table was actually removed. We might as well
clean it up unconditionally, on the off chance that a previous
ima measurement failed and left md->ima.inactive_table behind.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-ima.c
drivers/md/dm-ima.h
drivers/md/dm-ioctl.c