Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196281
b: refs/heads/master
c: 1721a23
h: refs/heads/master
i:
  196279: 8c6d94b
v: v3
  • Loading branch information
Julia Lawall authored and Jiri Kosina committed May 17, 2010
1 parent 3eeb3ac commit 9d291b7
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: 81cd584394e54514c57b18e0f23e0b5ca40070b2
refs/heads/master: 1721a238ba5df9e870ed952464d38714261f5be9
3 changes: 1 addition & 2 deletions trunk/drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,10 +653,9 @@ int hid_parse_report(struct hid_device *device, __u8 *start,
if (device->driver->report_fixup)
device->driver->report_fixup(device, start, size);

device->rdesc = kmalloc(size, GFP_KERNEL);
device->rdesc = kmemdup(start, size, GFP_KERNEL);
if (device->rdesc == NULL)
return -ENOMEM;
memcpy(device->rdesc, start, size);
device->rsize = size;

parser = vmalloc(sizeof(struct hid_parser));
Expand Down

0 comments on commit 9d291b7

Please sign in to comment.