projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef11851
)
[SCSI] esas2r: Remove null test for stack allocated fw_coredump_buffer
author
Bradley Grove
<bgrove@attotech.com>
Thu, 5 Sep 2013 17:08:00 +0000
(13:08 -0400)
committer
James Bottomley
<JBottomley@Parallels.com>
Fri, 6 Sep 2013 18:22:35 +0000
(11:22 -0700)
Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/esas2r/esas2r_init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/esas2r/esas2r_init.c
b/drivers/scsi/esas2r/esas2r_init.c
index 9aaad0d1dcf642ed4cd4d956c6e9fa2643f327c0..da1869df24088a2c2647027033ecd8d3e171c130 100644
(file)
--- a/
drivers/scsi/esas2r/esas2r_init.c
+++ b/
drivers/scsi/esas2r/esas2r_init.c
@@
-1551,8
+1551,7
@@
void esas2r_reset_chip(struct esas2r_adapter *a)
* to not overwrite a previous crash that was saved.
*/
if ((a->flags2 & AF2_COREDUMP_AVAIL)
- && !(a->flags2 & AF2_COREDUMP_SAVED)
- && a->fw_coredump_buff) {
+ && !(a->flags2 & AF2_COREDUMP_SAVED)) {
esas2r_read_mem_block(a,
a->fw_coredump_buff,
MW_DATA_ADDR_SRAM + 0x80000,