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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a13faca commit 0808ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)