We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1c079 commit c7f4c5dCopy full SHA for c7f4c5d
drivers/scsi/aic7xxx/aic79xx_osm.c
@@ -1834,7 +1834,8 @@ ahd_done(struct ahd_softc *ahd, struct scb *scb)
1834
} else {
1835
ahd_set_transaction_status(scb, CAM_REQ_CMP);
1836
}
1837
- } else if (ahd_get_transaction_status(scb) == CAM_SCSI_STATUS_ERROR) {
+ } else if (cmd &&
1838
+ ahd_get_transaction_status(scb) == CAM_SCSI_STATUS_ERROR) {
1839
ahd_linux_handle_scsi_status(ahd, cmd->device, scb);
1840
1841
@@ -1868,7 +1869,8 @@ ahd_done(struct ahd_softc *ahd, struct scb *scb)
1868
1869
1870
1871
ahd_free_scb(ahd, scb);
- ahd_linux_queue_cmd_complete(ahd, cmd);
1872
+ if (cmd)
1873
+ ahd_linux_queue_cmd_complete(ahd, cmd);
1874
1875
1876
static void
0 commit comments