OSDN Git Service

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, 29 Jan 2020 09:21:39 +0000 (10:21 +0100)
commit938d29820972c81b0be36a362900825ec3d88c62
treeb617c204974f77d9ba5fe81f48ebc7bc05687dd5
parentfb1778eb8031a1c08f929737ed40a197bcbc35c0
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