OpenCloudOS-Kernel/drivers/media/usb/cpia2
Shyam Saini 9945cf9997 [media] media: usb: cpia2: Use kmemdup instead of kmalloc and memcpy
When some other buffer is immediately copied into allocated region.
Replace calls to kmalloc followed by a memcpy with a direct
call to kmemdup.

Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-01-31 07:46:34 -02:00
..
Kconfig
Makefile
cpia2.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cpia2_core.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cpia2_registers.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cpia2_usb.c [media] media: usb: cpia2: Use kmemdup instead of kmalloc and memcpy 2017-01-31 07:46:34 -02:00
cpia2_v4l.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00