From: Himangi Saraogi Date: Sat, 28 Jun 2014 18:36:29 +0000 (+0530) Subject: batman-adv: Use kasprintf X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~230 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b98fe24ca7d0effdd4c47a9f681d9e4f10442827;p=pandora-kernel.git batman-adv: 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: // @@ expression a,flag; expression list args; statement S; @@ a = - \(kmalloc\|kzalloc\)(...,flag) + kasprintf(flag,args) <... when != a if (a == NULL || ...) S ...> - sprintf(a,args); // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed