TTY: con3215, unset raw3215[line]
authorJiri Slaby <[email protected]>
Tue, 7 Aug 2012 19:47:57 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <[email protected]>
Mon, 13 Aug 2012 23:50:20 +0000 (16:50 -0700)
commit3ec0a17ef5f4ea922b10ebfdb99473c4d8d6120d
tree63b9700b604ddfa0983bbaf8a4b49f5c8c03b03b
parent5920c2c9b9a16e86eb154fbb55d6034fbaad1b2b
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 <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: [email protected]
Cc: [email protected]
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/s390/char/con3215.c