From: Julia Lawall Date: Sun, 6 Dec 2009 09:16:51 +0000 (+0100) Subject: security/selinux/ss: correct size computation X-Git-Tag: v2.6.34-rc1~228^2^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f59f90bf57cff8be07faddc608c400b6e7c5d05;p=pandora-kernel.git security/selinux/ss: correct size computation The size argument to kcalloc should be the size of desired structure, not the pointer to it. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @expression@ expression *x; @@ x = <+... -sizeof(x) +sizeof(*x) ...+>// Signed-off-by: Julia Lawall Acked-by: Eric Paris Signed-off-by: James Morris --- Reading git-diff-tree failed