From: Jiri Slaby Date: Tue, 7 Aug 2012 19:47:57 +0000 (+0200) Subject: TTY: con3215, unset raw3215[line] X-Git-Tag: omap-cleanup-sparseirq-for-v3.7~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec0a17ef5f4ea922b10ebfdb99473c4d8d6120d;p=pandora-kernel.git TTY: con3215, unset raw3215[line] raw3215[line] is set in probe, but not unset in remove. This will lead to random crashes if the device is removed and the corresponding tty opened later. open would dereference freed memory. So set raw3215[line] to NULL in remove to fix that. Signed-off-by: Jiri Slaby Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed