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>
Mon, 27 Jan 2020 13:50:16 +0000 (14:50 +0100)
commit1dedc9d9269ad7f27b15996532c629e692e5aa1d
tree8f64df2add4431c5c1253e058b8bccb6f34ba18e
parent558c47fb668e7b2604ac22284b74a3df84f37b7f
tty: ipwireless: Fix potential NULL pointer dereference

[ Upstream commit 7dd50e205b3348dc7784efbdf85723551de64a25 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/ipwireless/hardware.c