mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
tty: ipwireless: Fix potential NULL pointer dereference
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
775ea4ea2f
commit
7dd50e205b
1 changed files with 2 additions and 0 deletions
|
|
@ -1516,6 +1516,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);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue