Julia Lawall
87575437d8
drivers/char/ppdev.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>
Cc: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-05-27 09:12:50 -07:00
..
2010-05-25 08:07:06 -07:00
2010-05-22 00:36:56 -06:00
2010-05-22 00:36:56 -06:00
2010-05-25 08:07:09 -07:00
2010-05-27 09:12:48 -07:00
2010-05-22 00:36:56 -06:00
2010-05-20 21:04:44 -07:00
2010-05-18 16:10:44 -06:00
2010-05-27 09:12:50 -07:00
2010-05-19 17:10:57 -07:00
2010-05-18 08:49:13 -07:00
2010-05-25 08:07:02 -07:00
2010-05-22 00:36:56 -06:00
2010-05-25 08:07:02 -07:00
2010-05-22 00:36:56 -06:00
2010-05-20 09:20:59 -07:00
2010-05-21 09:37:31 -07:00
2010-05-27 09:12:42 -07:00
2010-05-26 12:30:09 -07:00
2010-05-25 09:58:05 +02:00
2010-05-25 08:07:07 -07:00
2010-05-22 00:36:56 -06:00
2010-05-24 08:05:29 -07:00
2010-05-27 09:12:48 -07:00
2010-05-24 08:01:10 -07:00
2010-05-25 16:59:51 -07:00
2010-05-22 00:10:40 -06:00
2010-05-24 08:01:10 -07:00
2010-05-27 09:12:48 -07:00
2010-05-24 08:01:10 -07:00
2010-05-27 09:12:41 -07:00
2010-05-25 10:16:02 +01:00
2010-05-25 08:07:04 -07:00
2010-05-27 09:12:40 -07:00
2010-05-24 08:01:10 -07:00
2010-05-25 16:59:51 -07:00
2010-05-22 00:36:56 -06:00
2010-05-22 00:36:56 -06:00
2010-05-21 18:58:52 -07:00
2010-05-24 08:01:10 -07:00
2010-05-20 10:16:13 -04:00
2010-05-25 08:16:34 -07:00
2010-05-21 09:37:31 -07:00
2010-05-25 10:16:02 +01:00
2010-05-27 09:12:41 -07:00
2010-05-21 09:37:31 -07:00
2010-05-24 08:01:10 -07:00
2010-05-25 08:07:02 -07:00
2010-05-25 12:04:17 -07:00
2010-05-25 00:48:24 -06:00
2010-05-20 21:04:44 -07:00
2010-05-25 08:07:05 -07:00
2010-05-27 09:12:42 -07:00
2010-05-25 12:06:33 -07:00
2010-05-25 08:07:02 -07:00
2010-05-27 09:12:42 -07:00
2010-05-21 17:22:52 -07:00
2010-05-21 09:37:31 -07:00
2010-05-25 12:43:46 +00:00
2010-05-25 08:07:07 -07:00
2010-05-21 09:37:31 -07:00