summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-08-23 18:09:05 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-08-23 18:10:00 +0200
commitcf05b824dbb871159e1b4c4f2733b9c9d2f756cf (patch)
tree0fa55852038849722150149da4ab418f96c945b3 /arch
parent06739a8ad321b1e5140b318c648b0cc4bf8c6daa (diff)
downloadop-kernel-dev-cf05b824dbb871159e1b4c4f2733b9c9d2f756cf.zip
op-kernel-dev-cf05b824dbb871159e1b4c4f2733b9c9d2f756cf.tar.gz
[S390] drivers/s390: put NULL test before dereference
If the NULL test on block is needed, it should be before the dereference of the base field. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ expression E1,E2; identifier fld; statement S1,S2; @@ E1 = E2->fld; ( if (E1 == NULL) S1 else S2 | *if (E2 == NULL) S1 else S2 ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud