On Friday, April 17, 2015 18:34:18 Sven Eckelmann wrote: > From: Himangi Saraogi <[email protected]> > > kasprintf combines kmalloc and sprintf, and takes care of the size > calculation itself. > > The semantic patch that makes this change is as follows: > > // <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: Himangi Saraogi <[email protected]> > Acked-by: Julia Lawall <[email protected]> > Signed-off-by: David S. Miller <[email protected]> > Signed-off-by: Sven Eckelmann <[email protected]> > --- > sysfs.c | 24 ++++++++---------------- > 1 file changed, 8 insertions(+), 16 deletions(-)
Applied in revision aeb0f1d. Thanks, Marek
signature.asc
Description: This is a digitally signed message part.
