]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm: add missing unlock on in dm_keyslot_evict()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 30 Apr 2025 08:05:54 +0000 (11:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:24:04 +0000 (08:24 +0200)
commit38433aa31b4364ab5949c16fa34ea077074d8694
treecc80e1c11c3a62fc87e90f024a5af0e69482db4c
parent9c2dd8954dad0430e83ee55b985ba55070e50cf7
dm: add missing unlock on in dm_keyslot_evict()

commit 650266ac4c7230c89bcd1307acf5c9c92cfa85e2 upstream.

We need to call dm_put_live_table() even if dm_get_live_table() returns
NULL.

Fixes: 9355a9eb21a5 ("dm: support key eviction from keyslot managers of underlying devices")
Cc: stable@vger.kernel.org # v5.12+
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-table.c