]> asedeno.scripts.mit.edu Git - linux.git/commit
media: siano: Use kmemdup instead of duplicating its function
authorWen Yang <wen.yang99@zte.com.cn>
Thu, 6 Dec 2018 12:29:10 +0000 (07:29 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 7 Dec 2018 14:42:18 +0000 (09:42 -0500)
commit0f4bb10857e22a657e6c8cca5d1d54b641e94628
treef586586162695a37e2dba3399503119c5cfa3005
parent00c30f42c7595fa0e8c6b71c5ed60c4b54895708
media: siano: Use kmemdup instead of duplicating its function

kmemdup has implemented the function that kmalloc() + memcpy().
We prefer to kmemdup rather than code opened implementation.

This issue was detected with the help of coccinelle.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
CC: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>
CC: linux-kernel@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/siano/smsusb.c