diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-07 08:12:13 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-07-20 16:45:39 +0300 |
commit | 929b60a85b731d803f2b7829149496479eba0b20 (patch) | |
tree | 7ca4a14932399a76a23d1e69b6aad4b694baefb2 /drivers/hid/hid-generic.c | |
parent | 4cf56a89c696e66d10612b43b7e95852611e76c2 (diff) | |
download | linux-929b60a85b731d803f2b7829149496479eba0b20.tar.xz |
HID: hid-logitech-hidpp: add NULL check on devm_kmemdup() return value
Check return value from call to devm_kmemdup() in order to prevent a NULL
pointer dereference.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-generic.c')
0 files changed, 0 insertions, 0 deletions