aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorShreeya Patel <shreeya.patel23498@gmail.com>2020-03-13 16:54:51 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-17 14:00:45 +0100
commitd9e709d017f4645044738213714b762008bfc49c (patch)
treeb9821bddba0babb07903f630454282a087a286f4 /tools/perf/scripts/python/bin/stackcollapse-record
parentstaging: wfx: remove unneeded spaces (diff)
downloadlinux-d9e709d017f4645044738213714b762008bfc49c.tar.gz
linux-d9e709d017f4645044738213714b762008bfc49c.zip
Staging: wilc1000: cfg80211: Use kmemdup instead of kmalloc and memcpy
Replace calls to kmalloc followed by a memcpy with a direct call to kmemdup. The Coccinelle semantic patch used to make this change is as follows: @@ 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); Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Link: https://lore.kernel.org/r/20200313112451.25610-1-shreeya.patel23498@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions