mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[SCSI] mvsas: bug fix, null pointer may be used
Null pointer check to avoid corruption. Signed-off-by: Ying Chu <[email protected]> Signed-off-by: Andy Yan <[email protected]> Signed-off-by: Ke Wei <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
0b84b7094e
commit
0f980a8716
1 changed files with 4 additions and 4 deletions
|
|
@ -1873,11 +1873,11 @@ int mvs_slot_complete(struct mvs_info *mvi, u32 rx_desc, u32 flags)
|
|||
}
|
||||
|
||||
out:
|
||||
if (mvi_dev)
|
||||
if (mvi_dev) {
|
||||
mvi_dev->runing_req--;
|
||||
if (sas_protocol_ata(task->task_proto))
|
||||
mvs_free_reg_set(mvi, mvi_dev);
|
||||
|
||||
if (sas_protocol_ata(task->task_proto))
|
||||
mvs_free_reg_set(mvi, mvi_dev);
|
||||
}
|
||||
mvs_slot_task_free(mvi, task, slot, slot_idx);
|
||||
sts = tstat->stat;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue