mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
scsi: megaraid_sas: Fix fw_crash_buffer_show()
[ Upstream commit 0808ed6ebb
]
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>
This commit is contained in:
parent
01a51919e2
commit
5687c568b4
1 changed files with 1 additions and 1 deletions
|
@ -3032,7 +3032,7 @@ megasas_fw_crash_buffer_show(struct device *cdev,
|
|||
|
||||
spin_lock_irqsave(&instance->crashdump_lock, flags);
|
||||
buff_offset = instance->fw_crash_buffer_offset;
|
||||
if (!instance->crash_dump_buf &&
|
||||
if (!instance->crash_dump_buf ||
|
||||
!((instance->fw_crash_state == AVAILABLE) ||
|
||||
(instance->fw_crash_state == COPYING))) {
|
||||
dev_err(&instance->pdev->dev,
|
||||
|
|
Loading…
Reference in a new issue