The patch titled n_hdlc.c: fix check-after-use has been added to the -mm tree. Its filename is n_hdlcc-fix-check-after-use.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: n_hdlc.c: fix check-after-use From: Adrian Bunk <bunk@xxxxxxxxxx> The Coverity checker spotted that we'd have already oops'ed if "tty" was NULL. Since "tty" can't be NULL when we reach this line of code this patch removes the NULL check. Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx> Acked-by: Alan Cox <alan@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/n_hdlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/char/n_hdlc.c~n_hdlcc-fix-check-after-use drivers/char/n_hdlc.c --- a/drivers/char/n_hdlc.c~n_hdlcc-fix-check-after-use +++ a/drivers/char/n_hdlc.c @@ -229,7 +229,7 @@ static void n_hdlc_release(struct n_hdlc wake_up_interruptible (&tty->read_wait); wake_up_interruptible (&tty->write_wait); - if (tty != NULL && tty->disc_data == n_hdlc) + if (tty->disc_data == n_hdlc) tty->disc_data = NULL; /* Break the tty->n_hdlc link */ /* Release transmit and receive buffers */ _ Patches currently in -mm which might be from bunk@xxxxxxxxxx are arm-extern-inline-static-inline.patch git-dvb.patch make-the-dummy-touchkit_ps2_detect-static.patch mousedevcmixdev_open_devices-bugfix.patch git-kbuild.patch pass-g-to-assembler-under-config_debug_info-fix.patch fix-ide-ide-hook-acpi-psx-method-to-ide-power-on-off.patch fix-ide-ide-remove-ide-dma-check.patch drivers-mtd-mtdbdic-is-no-longer-an-own-module.patch git-nfsd.patch fix-x86_64-mm-unwinder.patch i386-visws-extern-inline-static-inline.patch file-capabilities-clear-fcaps-on-inode-change-fix.patch security-cleanups.patch make-kernel-power-maincsuspend_enter-static.patch uml-fix-inlines.patch kconfig-syntax-cleanups.patch kernel-time-timekeepingc-cleanups.patch make-fs-libfscsimple_commit_write-static.patch allow-disabling-dnotify-without-embedded.patch use-erestart_restartblock-if-poll-is-interrupted-by-a-signal-fix.patch remove-include-asm-ipch.patch n_hdlcc-fix-check-after-use.patch remove-fs-ext2-balloccreserve_blocks.patch pm3fb-mtrr-support-and-noaccel-option-make-pm3fb_init-static-again.patch sysctl-parport-remove-binary-paths-fix.patch sysctl-error-on-bad-sysctl-tables-kernel-sysctl_checkc-must-include-linux-stringh.patch reiser4-cryptcompress-misc-fixups-make-3-functions-static.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html