]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix NULL pointer dereference in isdn_tty_at_cout
authorKarsten Keil <kkeil@suse.de>
Tue, 14 Feb 2006 21:53:06 +0000 (13:53 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 15 Feb 2006 00:09:34 +0000 (16:09 -0800)
commit7251185d261a9f32b7ce318da9b277c612fb835f
treec44154348b93b8ab95772b482f43ae4274b1f977
parentdce327c0facadf569d23c06940fd49a938d65a4d
[PATCH] Fix NULL pointer dereference in isdn_tty_at_cout

The changes in the tty related code introduced wrong parenthesis in a if
condition in the isdn_tty_at_cout function.  This caused access to index -1
in the dev->drv[] array.  This patch change it back to the correct
condition from the previous versions.

Signed-off-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/i4l/isdn_tty.c