1
linux/drivers/char/pcmcia
David Sterba a51f4124e6 ipwireless: fix potential tty == NULL dereference
The Coverity checker spotted the following inconsequent NULL checking in
drivers/char/pcmcia/ipwireless/network.c:ipwireless_network_packet_received()

if (tty && channel_idx == IPW_CHANNEL_RAS
		&& (network->ras_control_lines &
			IPW_CONTROL_LINE_DCD) != 0
		&& ipwireless_tty_is_modem(tty)) {
...
	else
		ipwireless_tty_received(tty, data, length);

Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-04 16:35:13 -08:00
..
ipwireless ipwireless: fix potential tty == NULL dereference 2008-03-04 16:35:13 -08:00
cm4000_cs.c pcmcia: convert some internal-only ioaddr_t to unsigned int 2008-02-05 09:44:08 -08:00
cm4040_cs.c cm40x0_cs.c: fix debug macros 2007-11-14 18:45:37 -08:00
cm4040_cs.h
Kconfig pcmcia: ipwireless depends on NETDEVICES 2008-02-13 16:21:20 -08:00
Makefile ipwireless: driver for PC Card 3G/UMTS modem 2008-02-07 17:19:49 -08:00
synclink_cs.c synclink: standardize format of linux header file include's with "<>" 2008-02-06 10:41:06 -08:00