Searched hist:"1653268 b1b538981df9bb85d637456530938be6c" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/base/ |
H A D | module.c | diff 1653268b1b538981df9bb85d637456530938be6c Wed Mar 10 22:18:13 CET 2010 Julia Lawall <julia@diku.dk> driver core: module.c: Use kasprintf
kasprintf combines kmalloc and sprintf, and takes care of the size calculation itself.
The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/)
// <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); // </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|