summaryrefslogtreecommitdiff
path: root/net/sched/act_skbedit.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-05-15 21:19:15 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2010-07-21 17:39:06 (GMT)
commit5ee283c063a236b19e4582c675a2d8d615d5809c (patch)
tree68a26906d9e25bbd5963c5feae54fbe29dc81fee /net/sched/act_skbedit.c
parentd1d10d783089cc26a14be92fc12fccda9aa6593a (diff)
downloadlinux-fsl-qoriq-5ee283c063a236b19e4582c675a2d8d615d5809c.tar.xz
Bluetooth: Use kmemdup for drivers
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> Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/sched/act_skbedit.c')
0 files changed, 0 insertions, 0 deletions