]> 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 09:24:03 +0000 (11:24 +0200)
commit04e9fb4754bb525ba5c092c3120aefd4438701e3
treea218fd6b24b18d5e5ea53ae3b1e48f0c4edaa3a6
parent0f7dda3def39a6b2003639b34483b088a5a8b062
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