r8152: Use kmemdup instead of kmalloc + memcpy
authorBenoit Taine <benoit.taine@lip6.fr>
Mon, 26 May 2014 15:21:23 +0000 (17:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 May 2014 23:25:15 +0000 (16:25 -0700)
commitc4438f03ca439daa349d93d7102ed36422dfcd7f
tree331e736ee045f1cd5f684d7d8ce5fc342faa1202
parent958c492c55bff6fa0b3430e9824dc83597c88aa6
r8152: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c