diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2014-10-23 13:27:46 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-27 10:33:05 +0800 |
commit | e31a0e62803c64cab5e150b94c31364a1ce1d0fd (patch) | |
tree | 8abf0f73b64e4c88517ab492cbfe23211b89d455 /usr | |
parent | d2b778712e3aa5258fabbb96ed05bcb073a1ce2e (diff) | |
download | op-kernel-dev-e31a0e62803c64cab5e150b94c31364a1ce1d0fd.zip op-kernel-dev-e31a0e62803c64cab5e150b94c31364a1ce1d0fd.tar.gz |
Staging: vme: devices: Use kasprintf
This patch uses kasprintf which combines kmalloc and sprintf.
kasprintf also takes care of the size calculation.
This is done using Coccinelle. Semantic patch used is as follows:
@@
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: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions