]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/ipl: Fix incorrect initialization of nvme dump block
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 10 May 2024 10:41:26 +0000 (12:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:41 +0000 (13:39 +0200)
commit3a091c2010aaaedfe934ab1169ca0b956531e56e
treed20c6bb4f0875322f2dc3b1e3cfdd8eb64ccd909
parent79e71379f3a255257e3389995c6bc35f0f279afc
s390/ipl: Fix incorrect initialization of nvme dump block

[ Upstream commit 7faacaeaf6ce12fae78751de5ad869d8f1e1cd7a ]

Initialize the correct fields of the nvme dump block.
This bug had not been detected before because first, the fcp and nvme fields
of struct ipl_parameter_block are part of the same union and, therefore,
overlap in memory and second, they are identical in structure and size.

Fixes: d70e38cb1dee ("s390: nvme dump support")
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/ipl.c