Re: [PATCH 16/18] HID: uhid: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Jiri Kosina
On Mon, 26 May 2014, Benoit Taine wrote: > This issue was reported by coccicheck using the semantic patch > at scripts/coccinelle/api/memdup.cocci > > Signed-off-by: Benoit Taine Applied, thanks Benoit. -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe lin

Re: [PATCH 16/18] HID: uhid: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread David Herrmann
Hi On Mon, May 26, 2014 at 5:21 PM, Benoit Taine wrote: > 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 Thanks David > --- > Tested by compilation without errors. > > driver

[PATCH 16/18] HID: uhid: Use kmemdup instead of kmalloc + memcpy

2014-05-26 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Signed-off-by: Benoit Taine --- Tested by compilation without errors. drivers/hid/uhid.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hid/uhid.c b/driver