projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4291ee3
)
HID: Use vzalloc for vmalloc/memset(,0...)
author
Joe Perches
<joe@perches.com>
Fri, 10 Dec 2010 03:29:04 +0000
(19:29 -0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Fri, 10 Dec 2010 14:11:31 +0000
(15:11 +0100)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-core.c
b/drivers/hid/hid-core.c
index
1fd5e33
..
5ddace0
100644
(file)
--- a/
drivers/hid/hid-core.c
+++ b/
drivers/hid/hid-core.c
@@
-654,13
+654,12
@@
int hid_parse_report(struct hid_device *device, __u8 *start,
return -ENOMEM;
device->rsize = size;
- parser = v
m
alloc(sizeof(struct hid_parser));
+ parser = v
z
alloc(sizeof(struct hid_parser));
if (!parser) {
ret = -ENOMEM;
goto err;
}
- memset(parser, 0, sizeof(struct hid_parser));
parser->device = device;
end = start + size;