aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/cciss.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 1be82d544dc3..a11b2bd54bbe 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -3227,12 +3227,15 @@ static int alloc_cciss_hba(void)
3227 for (i = 0; i < MAX_CTLR; i++) { 3227 for (i = 0; i < MAX_CTLR; i++) {
3228 if (!hba[i]) { 3228 if (!hba[i]) {
3229 ctlr_info_t *p; 3229 ctlr_info_t *p;
3230
3230 p = kzalloc(sizeof(ctlr_info_t), GFP_KERNEL); 3231 p = kzalloc(sizeof(ctlr_info_t), GFP_KERNEL);
3231 if (!p) 3232 if (!p)
3232 goto Enomem; 3233 goto Enomem;
3233 p->gendisk[0] = alloc_disk(1 << NWD_SHIFT); 3234 p->gendisk[0] = alloc_disk(1 << NWD_SHIFT);
3234 if (!p->gendisk[0]) 3235 if (!p->gendisk[0]) {
3236 kfree(p);
3235 goto Enomem; 3237 goto Enomem;
3238 }
3236 hba[i] = p; 3239 hba[i] = p;
3237 return i; 3240 return i;
3238 } 3241 }