mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[SCSI] esas2r: Remove null test for stack allocated fw_coredump_buffer
Reported-by: Dave Jones <[email protected]> Signed-off-by: Bradley Grove <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
ef11851b34
commit
4079bc8b7d
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue