git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a61e97
)
HID: logitech-hidpp: leaks and NULL dereferences
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 31 Oct 2014 09:14:39 +0000
(12:14 +0300)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 3 Nov 2014 13:26:50 +0000
(14:26 +0100)
Shift the allocation down a few lines to avoid a memory leak and also
add a check for allocation failure.
Fixes:
2f31c5252910
('HID: Introduce hidpp, a module to handle Logitech hid++ devices')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c
patch
|
blob
|
history
diff --cc
drivers/hid/hid-logitech-hidpp.c
Simple merge