From: Avinash Patil Date: Wed, 14 May 2014 02:50:13 +0000 (-0700) Subject: mwifiex: set valid tx_param during mwifiex_send_null_packet X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~122^2^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d767dcbea32ef9c1c1640ee8dde7db3e1e36f4a;p=pandora-kernel.git 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 Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed