File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12913,8 +12913,10 @@ _mpt3sas_init(void)
12913
12913
mpt3sas_ctl_init (hbas_to_enumerate );
12914
12914
12915
12915
error = pci_register_driver (& mpt3sas_driver );
12916
- if (error )
12916
+ if (error ) {
12917
+ mpt3sas_ctl_exit (hbas_to_enumerate );
12917
12918
scsih_exit ();
12919
+ }
12918
12920
12919
12921
return error ;
12920
12922
}
Original file line number Diff line number Diff line change @@ -4954,7 +4954,7 @@ qla2x00_mem_free(struct qla_hw_data *ha)
4954
4954
ha -> gid_list = NULL ;
4955
4955
ha -> gid_list_dma = 0 ;
4956
4956
4957
- if (!list_empty (& ha -> base_qpair -> dsd_list )) {
4957
+ if (ha -> base_qpair && !list_empty (& ha -> base_qpair -> dsd_list )) {
4958
4958
struct dsd_dma * dsd_ptr , * tdsd_ptr ;
4959
4959
4960
4960
/* clean up allocated prev pool */
You can’t perform that action at this time.
0 commit comments