summaryrefslogtreecommitdiff
path: root/drivers/misc/hpilo.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2012-09-15 01:29:37 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-26 13:20:40 -0700
commit221b7b5796b520b51c34c40239d77921ba39225b (patch)
tree18a779b98a3872b086461308e49862a0777a0dcb /drivers/misc/hpilo.c
parent08b79dd10bb24f5fb12446d21d32c87a8136c770 (diff)
downloadlwn-221b7b5796b520b51c34c40239d77921ba39225b.tar.gz
lwn-221b7b5796b520b51c34c40239d77921ba39225b.zip
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/hpilo.c')
0 files changed, 0 insertions, 0 deletions