Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338686
b: refs/heads/master
c: 564e698
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent 802d24a commit 71d3a0f
Show file tree
Hide file tree
Showing 2 changed files with 4 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: fb4e98ab63433c4d3a1588ea91c73f1cd7ebaa00
refs/heads/master: 564e69893c63cefe4bcbdeda4f940bf68b6b4491
3 changes: 3 additions & 0 deletions trunk/drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ alloc_sglist(int nents, int max, int vary)
unsigned i;
unsigned size = max;

if (max == 0)
return NULL;

sg = kmalloc_array(nents, sizeof *sg, GFP_KERNEL);
if (!sg)
return NULL;
Expand Down

0 comments on commit 71d3a0f

Please sign in to comment.