]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hid-logitech-hidpp: add NULL check on devm_kmemdup() return value
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 7 Jul 2017 05:12:13 +0000 (00:12 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Jul 2017 13:45:39 +0000 (15:45 +0200)
commit7ee28f9a726a10b71f52c66aa950087c49f9746f
tree7ca4a14932399a76a23d1e69b6aad4b694baefb2
parent387e10ee110fd8e545c5c4c2161ce2ab4a2d6cd9
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>
drivers/hid/hid-logitech-hidpp.c