From: Julia Lawall
Use kzalloc rather than the combination of kmalloc and memset.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x,size,flags;
statement S;
@@
-x = kmalloc(size,flags);
+x = kzalloc(size,flags);
if (x == NULL) S
-memset(
On Thu, May 13, 2010 at 3:58 PM, Julia Lawall wrote:
> From: Julia Lawall
>
> Use kzalloc rather than the combination of kmalloc and memset.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> //
> @@
> expression x,size,flags;
> statement S;
> @@
>
>
On Thu, May 13, 2010 at 3:58 PM, Julia Lawall wrote:
> From: Julia Lawall
>
> Use kzalloc rather than the combination of kmalloc and memset.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> //
> @@
> expression x,size,flags;
> statement S;
> @@
>
>
On Thu, May 13, 2010 at 12:58 PM, Julia Lawall wrote:
> From: Julia Lawall
>
> Use kzalloc rather than the combination of kmalloc and memset.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> //
> @@
> expression x,size,flags;
> statement S;
> @@
>
>
On Thu, May 13, 2010 at 12:58 PM, Julia Lawall wrote:
> From: Julia Lawall
>
> Use kzalloc rather than the combination of kmalloc and memset.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> //
> @@
> expression x,size,flags;
> statement S;
> @@
>
>
From: Julia Lawall
Use kzalloc rather than the combination of kmalloc and memset.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
//
@@
expression x,size,flags;
statement S;
@@
-x = kmalloc(size,flags);
+x = kzalloc(size,flags);
if (x == NULL) S
-memset(