diff options
| author | Xiang Chen <[email protected]> | 2018-11-09 22:06:35 +0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-11-15 14:37:05 -0500 |
| commit | 745b6847634c11dda1079d0290781a443eddb4b7 (patch) | |
| tree | 8f4af7c00328116c1851b3fd74061d6a06a02182 /include/linux/debugobjects.h | |
| parent | 37359798ec44ae03fab383a9bef3b7c9df819063 (diff) | |
scsi: hisi_sas: Relocate some codes to avoid an unused check
In function hisi_sas_task_prep(), we check asd_sas_port, but in function
hisi_sas_task_exec(), we already refer to asd_sas_port by using function
dev_to_hisi_hba() implicitly. So to avoid this possible invalid
dereference, relocate the check to function hisi_sas_task_prep().
Signed-off-by: Xiang Chen <[email protected]>
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions