7a12f4b50d
Use kmemdup when some other buffer is immediately copied into the allocated region. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression from,to,size,flag; statement S; @@ - to = \(kmalloc\|kzalloc\)(size,flag); + to = kmemdup(from,size,flag); if (to==NULL || ...) S - memcpy(to, from, size); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
videocodec.c | ||
videocodec.h | ||
zoran_card.c | ||
zoran_card.h | ||
zoran_device.c | ||
zoran_device.h | ||
zoran_driver.c | ||
zoran_procfs.c | ||
zoran_procfs.h | ||
zoran.h | ||
zr36016.c | ||
zr36016.h | ||
zr36050.c | ||
zr36050.h | ||
zr36057.h | ||
zr36060.c | ||
zr36060.h |