]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tty: ipwireless: Fix potential NULL pointer dereference
authorYueHaibing <yuehaibing@huawei.com>
Wed, 30 Jan 2019 10:30:51 +0000 (18:30 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit8750c0c478adbcb77055112cfe1ba1952b562853
treeeeca9d388a0c119c009b562c659b34e45379e674
parenta7fca6d9bd814e07416d482f0ba715f9752df1a2
tty: ipwireless: Fix potential NULL pointer dereference

BugLink: https://bugs.launchpad.net/bugs/1863019
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/ipwireless/hardware.c