]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: qcom: Fix crypto key eviction
authorEric Biggers <ebiggers@google.com>
Tue, 10 Dec 2024 03:08:39 +0000 (19:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:22 +0000 (10:05 +0100)
commitf77e890c7623d33bea2022fb02e091d6e5d969a3
tree22c16cd37c75433a0597bcb4433c04c77d86f9c9
parent2cf3c3fe9a11aa168e80c966494c58548b9aed5d
scsi: ufs: qcom: Fix crypto key eviction

commit 7a0905caf5665be41094a6ceb5e9d2524de4627a upstream.

Commit 56541c7c4468 ("scsi: ufs: ufs-qcom: Switch to the new ICE API")
introduced an incorrect check of the algorithm ID into the key eviction
path, and thus qcom_ice_evict_key() is no longer ever called.  Fix it.

Fixes: 56541c7c4468 ("scsi: ufs: ufs-qcom: Switch to the new ICE API")
Cc: stable@vger.kernel.org
Cc: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20241210030839.1118805-1-ebiggers@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ufs/host/ufs-qcom.c