From: Jiri Slaby Date: Tue, 23 Oct 2007 03:45:13 +0000 (-0700) Subject: Char: cyclades, fix potential NULL dereference X-Git-Tag: v2.6.24-rc1~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fa57a0cd98bdd163eeb5f15cbe234c3a0cf68a1;p=pandora-kernel.git Char: cyclades, fix potential NULL dereference ztxdone is jumped to even if tty is NULL and tty_wakeup placed after this label doesn't expect NULLed parameter, so this will cause an oops in some situations (why they scheduled a wakeup there before remove bottom half processing patch?). wakeup only in the case when we have non-null tty struct. Spotted by Adrian Bunk. Signed-off-by: Jiri Slaby Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed