Skip to content

Commit 1dfc87a

Browse files
James BottomleyJames Bottomley
authored andcommitted
Merge branch 'fixes' into for-next
2 parents 01c57b7 + 097c063 commit 1dfc87a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/scsi/mpt3sas/mpt3sas_scsih.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12913,8 +12913,10 @@ _mpt3sas_init(void)
1291312913
mpt3sas_ctl_init(hbas_to_enumerate);
1291412914

1291512915
error = pci_register_driver(&mpt3sas_driver);
12916-
if (error)
12916+
if (error) {
12917+
mpt3sas_ctl_exit(hbas_to_enumerate);
1291712918
scsih_exit();
12919+
}
1291812920

1291912921
return error;
1292012922
}

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4954,7 +4954,7 @@ qla2x00_mem_free(struct qla_hw_data *ha)
49544954
ha->gid_list = NULL;
49554955
ha->gid_list_dma = 0;
49564956

4957-
if (!list_empty(&ha->base_qpair->dsd_list)) {
4957+
if (ha->base_qpair && !list_empty(&ha->base_qpair->dsd_list)) {
49584958
struct dsd_dma *dsd_ptr, *tdsd_ptr;
49594959

49604960
/* clean up allocated prev pool */

0 commit comments

Comments
 (0)