]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: megaraid_sas: Fix fw_crash_buffer_show()
authorTomas Henzl <thenzl@redhat.com>
Fri, 24 Mar 2023 13:52:49 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 12:28:36 +0000 (14:28 +0200)
commit69ad1b317dab193ca29e69028119ed1124cace0b
treeb1dee26637144263db3b059ced2025882ead4c3d
parent308d0b009be26ba238e1ed98a06ff270e83ea3f9
scsi: megaraid_sas: Fix fw_crash_buffer_show()

[ Upstream commit 0808ed6ebbc292222ca069d339744870f6d801da ]

If crash_dump_buf is not allocated then crash dump can't be available.
Replace logical 'and' with 'or'.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20230324135249.9733-1-thenzl@redhat.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/megaraid/megaraid_sas_base.c