Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142121
b: refs/heads/master
c: fd6e1c1
h: refs/heads/master
i:
  142119: 76d457e
v: v3
  • Loading branch information
Jean Delvare authored and James Bottomley committed Apr 3, 2009
1 parent db88b3a commit b011efc
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5b2639d59afe0a30e1b955b23c52ee9099888058
refs/heads/master: fd6e1c14b73dbab89cb76af895d5612e4a8b5522
4 changes: 3 additions & 1 deletion trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1999,8 +1999,10 @@ iscsi_pool_init(struct iscsi_pool *q, int max, void ***items, int item_size)

q->queue = kfifo_init((void*)q->pool, max * sizeof(void*),
GFP_KERNEL, NULL);
if (q->queue == ERR_PTR(-ENOMEM))
if (IS_ERR(q->queue)) {
q->queue = NULL;
goto enomem;
}

for (i = 0; i < max; i++) {
q->pool[i] = kzalloc(item_size, GFP_KERNEL);
Expand Down

0 comments on commit b011efc

Please sign in to comment.