summaryrefslogtreecommitdiff
path: root/crypto/deflate.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-03-23 23:42:56 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-24 02:46:39 (GMT)
commitd9d691f584bd012d235c35279c043a2ccd23d7d7 (patch)
tree9094c048d6df951f14e2fb1cc790366791fdd7d5 /crypto/deflate.c
parent73210a135b9dd53ba59beb4ced5a55633ae65b2f (diff)
downloadlinux-fsl-qoriq-d9d691f584bd012d235c35279c043a2ccd23d7d7.tar.xz
drivers/tty/bfin_jtag_comm.c: avoid calling put_tty_driver on NULL
put_tty_driver calls tty_driver_kref_put on its argument, and then tty_driver_kref_put calls kref_put on the address of a field of this argument. kref_put checks for NULL, but in this case the field is likely to have some offset and so the result of taking its address will not be NULL. Labels are added to be able to skip over the call to put_tty_driver when the argument will be NULL. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression *x; @@ *if (x == NULL) { ... * put_tty_driver(x); ... return ...; } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Cc: Torben Hohn <torbenh@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/deflate.c')
0 files changed, 0 insertions, 0 deletions