diff options
author | Julia Lawall <[email protected]> | 2010-03-10 11:15:01 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2010-04-07 18:00:42 +1000 |
commit | 43caa61f154da85a620965f3f61c2f45366d8dc7 (patch) | |
tree | ea487c9de02013c1b5d4fad8d1fde7517244bf17 /fs/jbd/commit.c | |
parent | a7df5c5e52a545774c4db1f2adf09ede018ab139 (diff) |
powerpc/pseries/dlpar: 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 <[email protected]>
Acked-by: Nathan Fontenot <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions