summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dvb-usb-init.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-07-01 01:41:44 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:03:36 -0300
commit2b3c543a839cafeb3edd7e1a2202d86318801fd9 (patch)
tree78f645227ed11d0f0eab4bd14cee7a5f288e1f8a /drivers/media/dvb/dvb-usb/dvb-usb-init.c
parent1ece36097d0170a41fc129b8b1823a36ec2fb5c6 (diff)
downloadop-kernel-dev-2b3c543a839cafeb3edd7e1a2202d86318801fd9.zip
op-kernel-dev-2b3c543a839cafeb3edd7e1a2202d86318801fd9.tar.gz
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 'drivers/media/dvb/dvb-usb/dvb-usb-init.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud