WSL2-Linux-Kernel/drivers/staging/vme
Vaishali Thakkar e31a0e6280 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>
2014-10-27 10:33:05 +08:00
..
devices Staging: vme: devices: Use kasprintf 2014-10-27 10:33:05 +08:00
Makefile Staging: VME: move VME drivers out of staging 2012-04-26 12:34:58 -07:00