mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 04:11:49 +00:00
2b3c543a83
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 | ||
pd-alsa.c | ||
pd-common.h | ||
pd-dvb.c | ||
pd-main.c | ||
pd-radio.c | ||
pd-video.c | ||
vendorcmds.h |