diff options
author | Julia Lawall <julia@diku.dk> | 2010-07-01 04:41:44 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 18:03:36 (GMT) |
commit | 2b3c543a839cafeb3edd7e1a2202d86318801fd9 (patch) | |
tree | 78f645227ed11d0f0eab4bd14cee7a5f288e1f8a /lib/list_debug.c | |
parent | 1ece36097d0170a41fc129b8b1823a36ec2fb5c6 (diff) | |
download | linux-fsl-qoriq-2b3c543a839cafeb3edd7e1a2202d86318801fd9.tar.xz |
V4L/DVB: drivers/media/video/tlg2300: Use kmemdup
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>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions