]> 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:21:20 +0000 (08:21 +0200)
commitb173204aadffe62d9654b4da0d99d9d2e39a9789
treeed67d8204579d24ee34729371d9254aa3747dd95
parent02b72ccb5f9df707a763d9f7163d7918d3aff0b7
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