diff options
Diffstat (limited to 'drivers/scsi/pci2220i.c')
-rw-r--r-- | drivers/scsi/pci2220i.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/pci2220i.c b/drivers/scsi/pci2220i.c index 1869be7c0..6b767a1c8 100644 --- a/drivers/scsi/pci2220i.c +++ b/drivers/scsi/pci2220i.c @@ -2545,6 +2545,9 @@ int Pci2220i_Detect (Scsi_Host_Template *tpnt) if (pci_enable_device(pcidev)) continue; pshost = scsi_register (tpnt, sizeof(ADAPTER2220I)); + if(pshost==NULL) + continue; + padapter = HOSTDATA(pshost); if ( GetRegs (pshost, FALSE, pcidev) ) |