Skip to content

Commit 0808ed6

Browse files
thenzlmartinkpetersen
authored andcommitted
scsi: megaraid_sas: Fix fw_crash_buffer_show()
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>
1 parent a13faca commit 0808ed6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ fw_crash_buffer_show(struct device *cdev,
32983298

32993299
spin_lock_irqsave(&instance->crashdump_lock, flags);
33003300
buff_offset = instance->fw_crash_buffer_offset;
3301-
if (!instance->crash_dump_buf &&
3301+
if (!instance->crash_dump_buf ||
33023302
!((instance->fw_crash_state == AVAILABLE) ||
33033303
(instance->fw_crash_state == COPYING))) {
33043304
dev_err(&instance->pdev->dev,

0 commit comments

Comments
 (0)