Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227606
b: refs/heads/master
c: fe25802
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Jiri Kosina committed Dec 10, 2010
1 parent 0bc6e85 commit d7fcde4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 4291ee305e9bb0699504a66f0e2b7aefcf0512a5
refs/heads/master: fe2580204d8bbcd18540736a283ed0b784c6a024
3 changes: 1 addition & 2 deletions trunk/drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,12 @@ int hid_parse_report(struct hid_device *device, __u8 *start,
return -ENOMEM;
device->rsize = size;

parser = vmalloc(sizeof(struct hid_parser));
parser = vzalloc(sizeof(struct hid_parser));
if (!parser) {
ret = -ENOMEM;
goto err;
}

memset(parser, 0, sizeof(struct hid_parser));
parser->device = device;

end = start + size;
Expand Down

0 comments on commit d7fcde4

Please sign in to comment.