diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2012-09-15 01:29:37 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-27 00:20:40 +0400 |
commit | 221b7b5796b520b51c34c40239d77921ba39225b (patch) | |
tree | 18a779b98a3872b086461308e49862a0777a0dcb /drivers/misc/lis3lv02d/lis3lv02d.c | |
parent | 08b79dd10bb24f5fb12446d21d32c87a8136c770 (diff) | |
download | linux-221b7b5796b520b51c34c40239d77921ba39225b.tar.xz |
pcmcia: synclink_cs: fix potential tty NULL dereference
tty_port_tty_get() can return NULL after port hangup that may happen anytime.
The patch adds checks that tty_port_tty_get() returns nonNULL around places
where tty is actually used.
I have no actual hardware to test the patch, so I have updated rx side
processing from common sense only.
v2: rx handling updated according Alan Cox feedback.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/lis3lv02d/lis3lv02d.c')
0 files changed, 0 insertions, 0 deletions