]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: ipwireless: Fix potential NULL pointer dereference
authorYueHaibing <yuehaibing@huawei.com>
Wed, 30 Jan 2019 10:30:51 +0000 (18:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2019 11:03:58 +0000 (12:03 +0100)
commit7dd50e205b3348dc7784efbdf85723551de64a25
treef26906aae84b94d82a1e1a785478ab0ca6655f14
parent775ea4ea2fd9a4554c5c01fcc5e53da2308e6f35
tty: ipwireless: Fix potential NULL pointer dereference

There is a potential NULL pointer dereference in case
alloc_ctrl_packet() fails and returns NULL.

Fixes: 099dc4fb6265 ("ipwireless: driver for PC Card 3G/UMTS modem")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/ipwireless/hardware.c