]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: set valid tx_param during mwifiex_send_null_packet
authorAvinash Patil <patila@marvell.com>
Wed, 14 May 2014 02:50:13 +0000 (19:50 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 May 2014 18:26:53 +0000 (14:26 -0400)
commitbcef4c4314b69c6b213e096c3572f73c252807f3
treeb123f81cfbb2baeda1c37a7888241807d18ede70
parent6e8a6c67690e6bb5c2d3c1e4863b01c6566d484c
mwifiex: set valid tx_param during mwifiex_send_null_packet

While sending null packet from driver we are passing NULL
tx_param pointer to indicate there are no more packets in queue.
PCIe send routine assumes caller has done sanity check on
tx_param and may cause crash while dereferencing next_pkt_len
from tx_param.

Avoid this by passing tx_param structure with next_pkt_len as
zero instead of NULL pointer.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/sta_tx.c