HID: uhid: Use kmemdup instead of kmalloc + memcpy
authorBenoit Taine <benoit.taine@lip6.fr>
Mon, 26 May 2014 15:21:25 +0000 (17:21 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 26 May 2014 22:41:05 +0000 (00:41 +0200)
commit662d4ceae8d45bc8634d9f4c9a9e05ef42041038
tree3ba55ebb0c34ce87b5692d68148f0d48dd6c7f8d
parent37c492c8f6a99870551fe2964b2dfce5d9e87375
HID: uhid: Use kmemdup instead of kmalloc + memcpy

This issue was reported by coccicheck using the semantic patch
at scripts/coccinelle/api/memdup.cocci

Signed-off-by: Benoit Taine <benoit.taine@lip6.fr>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/uhid.c