diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index a59e1e022e3716cb13caf2de2e0a9d82636ad20f..1d284730d66b4a2785681462bd00ca3a29a3f85d 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -6995,8 +6995,10 @@ static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) /* Allocate and clear per-cpu variable lockup_detected */ h->lockup_detected = alloc_percpu(u32); - if (!h->lockup_detected) + if (!h->lockup_detected) { + rc = -ENOMEM; goto clean1; + } set_lockup_detected_for_all_cpus(h, 0); rc = hpsa_pci_init(h);