diff options
| author | 2015-03-01 13:08:00 +0530 | |
|---|---|---|
| committer | 2015-03-01 15:13:27 -0800 | |
| commit | 95745e9b1de24fc682a47080124819e1808c3a17 (patch) | |
| tree | c0f827000f738c7b9e5689caabb06ba10995635f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | Staging: dgnc: Replace printk() with dev_dbg() (diff) | |
staging: lustre: Use kasprintf.
This patch uses kasprintf as it combines kmalloc and
sprintf, and takes care of the size calculation itself.
The semantic patch that makes this change is as follows:
// <smpl>
@@
expression a,flag;
expression list args;
statement S;
@@
a =
- \(kmalloc\|kzalloc\)(...,flag)
+ kasprintf(flag,args)
<... when != a
if (a == NULL || ...) S
...>
- sprintf(a,args);
Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
