s390/ap: Don't leak debug feature files if AP instructions are not available

[ Upstream commit 020d5dc578 ]

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

Fixes: cccd85bfb7 ("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>
This commit is contained in:
Heiko Carstens 2025-10-24 12:24:33 +02:00 • committed by Greg Kroah-Hartman
commit d1376bcacc