Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359451
b: refs/heads/master
c: a2e49cb
h: refs/heads/master
i:
  359449: b7b5ddb
  359447: ac96094
v: v3
  • Loading branch information
Brian King authored and James Bottomley committed Jan 29, 2013
1 parent ba62483 commit 4ec8a7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8d5d568a319c1c466cbc6fe1fceaa4a99128a74
refs/heads/master: a2e49cb262208a4c3adec7788ecc1179e07dc912
7 changes: 7 additions & 0 deletions trunk/drivers/scsi/ipr.c
Original file line number Diff line number Diff line change
Expand Up @@ -8516,6 +8516,10 @@ static int ipr_alloc_mem(struct ipr_ioa_cfg *ioa_cfg)
BITS_TO_LONGS(ioa_cfg->max_devs_supported), GFP_KERNEL);
ioa_cfg->vset_ids = kzalloc(sizeof(unsigned long) *
BITS_TO_LONGS(ioa_cfg->max_devs_supported), GFP_KERNEL);

if (!ioa_cfg->target_ids || !ioa_cfg->array_ids
|| !ioa_cfg->vset_ids)
goto out_free_res_entries;
}

for (i = 0; i < ioa_cfg->max_devs_supported; i++) {
Expand Down Expand Up @@ -8591,6 +8595,9 @@ static int ipr_alloc_mem(struct ipr_ioa_cfg *ioa_cfg)
ioa_cfg->vpd_cbs, ioa_cfg->vpd_cbs_dma);
out_free_res_entries:
kfree(ioa_cfg->res_entries);
kfree(ioa_cfg->target_ids);
kfree(ioa_cfg->array_ids);
kfree(ioa_cfg->vset_ids);
goto out;
}

Expand Down

0 comments on commit 4ec8a7e

Please sign in to comment.