Tag: e31a0e62803c64cab5e150b94c31364a1ce1d0fd

Staging: vme: devices: Use kasprintf

Author: Vaishali Thakkar <vthakkar1994@gmail.com> 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) – sprintf(a,args); Signed-off-by: Vaishali Thakkar Signed-off-by: Greg …

Continue reading