linux-stable/drivers/staging/vme/devices
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
..
Kconfig staging: vme: devices: Added a paragraph to describe Kconfig symbol 2014-10-20 10:29:18 +08:00
Makefile
vme_pio2.h
vme_pio2_cntr.c
vme_pio2_core.c staging: vme: Add missing CR in printk messages in vme_pio2_core.c 2014-07-18 16:12:37 -07:00
vme_pio2_gpio.c Staging: vme: devices: Use kasprintf 2014-10-27 10:33:05 +08:00
vme_user.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-10-13 11:28:42 +02:00
vme_user.h vme_user: Use __u64 and __u32 in userspace structs 2013-12-18 16:20:13 -08:00