Tag: 662d4ceae8d45bc8634d9f4c9a9e05ef42041038

HID: uhid: Use kmemdup instead of kmalloc + memcpy

Author: Benoit Taine <benoit.taine@lip6.fr> This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine Reviewed-by: David Herrmann Signed-off-by: Jiri Kosina — drivers/hid/uhid.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-)   diff –git a/drivers/hid/uhid.c b/drivers/hid/uhid.c index 0d078c3..0cb92e3 100644 — a/drivers/hid/uhid.c +++ b/drivers/hid/uhid.c @@ -441,12 +441,11 @@ static int …

Continue reading