Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161055
b: refs/heads/master
c: a2cf8a6
h: refs/heads/master
i:
  161053: 204a785
  161051: 4cc71c7
  161047: 88de06e
  161039: 48d0c39
  161023: 82548db
v: v3
  • Loading branch information
Davidlohr Bueso A authored and James Bottomley committed Aug 22, 2009
1 parent ddcfcb2 commit 85a394c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d68866927ddd0ed3145cb3fba4a1c07ca5e4709d
refs/heads/master: a2cf8a6306c89223d0ed35a7e9d40da99902e32a
6 changes: 6 additions & 0 deletions trunk/drivers/scsi/ch.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ ch_readconfig(scsi_changer *ch)
/* look up the devices of the data transfer elements */
ch->dt = kmalloc(ch->counts[CHET_DT]*sizeof(struct scsi_device),
GFP_KERNEL);

if (!ch->dt) {
kfree(buffer);
return -ENOMEM;
}

for (elem = 0; elem < ch->counts[CHET_DT]; elem++) {
id = -1;
lun = 0;
Expand Down

0 comments on commit 85a394c

Please sign in to comment.