summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal_64.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-08-07 09:00:34 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-08-20 10:27:17 +1000
commit6c75933c00049bee59562a18843a4f133ec2bfe4 (patch)
tree57618062dd88af2c186610a5f880df48257f8d24 /arch/powerpc/kernel/signal_64.c
parent8dcd038a13b8e322c49fe0d3e31a0deaba4fd5fd (diff)
downloadtalos-obmc-linux-6c75933c00049bee59562a18843a4f133ec2bfe4.tar.gz
talos-obmc-linux-6c75933c00049bee59562a18843a4f133ec2bfe4.zip
powerpc/fsl_rio: Add kmalloc NULL tests
Check that the result of kmalloc/kzalloc is not NULL before dereferencing it. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression *x; identifier f; constant char *C; @@ x = \(kmalloc\|kcalloc\|kzalloc\)(...); ... when != x == NULL when != x != NULL when != (x || ...) ( kfree(x) | f(...,C,...,x,...) | *f(...,x,...) | *x->f ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/signal_64.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud