]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/ap: Don't leak debug feature files if AP instructions are not available
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 24 Oct 2025 10:24:33 +0000 (12:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:54:47 +0000 (13:54 +0100)
commitd1376bcacc8203c21dce4e9a714ce8ad0289f714
tree8e4c7f2d02458a30483590e98010ad5b962c67dc
parentecb0b9f92503bf3ee3c44386b979f94b37db2f91
s390/ap: Don't leak debug feature files if AP instructions are not available

[ Upstream commit 020d5dc57874e58d3ebae398f3fe258f029e3d06 ]

If no AP instructions are available the AP bus module leaks registered
debug feature files. Change function call order to fix this.

Fixes: cccd85bfb7bf ("s390/zcrypt: Rework debug feature invocations.")
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/crypto/ap_bus.c