mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
tty: ipwireless: Fix potential NULL pointer dereference
[ Upstream commit7dd50e205b] There is a potential NULL pointer dereference in case alloc_ctrl_packet() fails and returns NULL. Fixes:099dc4fb62("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e6f4125d71
commit
33e2aa316d
@@ -1515,6 +1515,8 @@ static void ipw_send_setup_packet(struct ipw_hardware *hw)
|
||||
sizeof(struct ipw_setup_get_version_query_packet),
|
||||
ADDR_SETUP_PROT, TL_PROTOCOLID_SETUP,
|
||||
TL_SETUP_SIGNO_GET_VERSION_QRY);
|
||||
if (!ver_packet)
|
||||
return;
|
||||
ver_packet->header.length = sizeof(struct tl_setup_get_version_qry);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user