Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63372
b: refs/heads/master
c: f2912a1
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jul 31, 2007
1 parent 43d7bbd commit 67c472f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff0cfc66cd99d59e3a8024003171035e4ae192b7
refs/heads/master: f2912a1223c0917a7b4e054f18086209137891ea
5 changes: 4 additions & 1 deletion trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -3227,12 +3227,15 @@ static int alloc_cciss_hba(void)
for (i = 0; i < MAX_CTLR; i++) {
if (!hba[i]) {
ctlr_info_t *p;

p = kzalloc(sizeof(ctlr_info_t), GFP_KERNEL);
if (!p)
goto Enomem;
p->gendisk[0] = alloc_disk(1 << NWD_SHIFT);
if (!p->gendisk[0])
if (!p->gendisk[0]) {
kfree(p);
goto Enomem;
}
hba[i] = p;
return i;
}
Expand Down

0 comments on commit 67c472f

Please sign in to comment.