kernel-ark/drivers
KAMBAROV, ZAUR 69f63c5c34 [PATCH] coverity: tty_ldisc_ref return null check
We add a check of the return value of tty_ldisc_ref(), which
is checked 7 out of 8 times, e.g.:

149  		ld = tty_ldisc_ref(tty);
150  		if (ld != NULL) {
151  			if (ld->set_termios)
152  				(ld->set_termios)(tty, &old_termios);
153  			tty_ldisc_deref(ld);
154  		}

This defect was found automatically by Coverity Prevent, a static analysis
tool.

(akpm: presumably `ld' is never NULL.  Oh well)

Signed-off-by: Zaur Kambarov <zkambarov@coverity.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-28 21:20:34 -07:00
..
acorn
acpi [PATCH] acpi bridge hotadd: Export the interface to get PCI id for an ACPI handle 2005-06-27 21:52:42 -07:00
atm
base [PATCH] request_firmware(): avoid race conditions 2005-06-28 21:20:30 -07:00
block [PATCH] ll_rw_blk: prevent huge request allocations 2005-06-28 14:56:50 -07:00
bluetooth
cdrom
char [PATCH] coverity: tty_ldisc_ref return null check 2005-06-28 21:20:34 -07:00
cpufreq
crypto
dio
eisa
fc4
firmware
i2c
ide
ieee1394
infiniband
input
isdn [PATCH] drivers/isdn/: make some code static 2005-06-28 21:20:31 -07:00
macintosh
mca
md [PATCH] md: bio leak fix 2005-06-28 14:53:41 -07:00
media
message [PATCH] PCI: make drivers use the pci shutdown callback instead of the driver core callback. 2005-06-27 21:52:47 -07:00
misc
mmc
mtd
net Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6 2005-06-28 14:59:07 -07:00
nubus
oprofile
parisc [PATCH] acpi bridge hotadd: ACPI based root bridge hot-add 2005-06-27 21:52:39 -07:00
parport
pci [PATCH] cpqphp: fix oops during unload without probe 2005-06-27 21:52:46 -07:00
pcmcia [PATCH] ACPI-based PCI resources: PCMCIA bugfix, but resources missing in trees 2005-06-27 18:03:22 -07:00
pnp
s390
sbus
scsi [PATCH] coverity: i386: scsi_lib buffer overrun fix 2005-06-28 21:20:33 -07:00
serial
sh
sn
tc
telephony
usb
video
w1
zorro
Kconfig
Makefile