]> git.karo-electronics.de Git - linux-beck.git/commit
mwifiex: fix crash in SDIO RX path
authorAvinash Patil <patila@marvell.com>
Wed, 18 Mar 2015 14:42:52 +0000 (20:12 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 20 Mar 2015 07:07:11 +0000 (09:07 +0200)
commit080465f27aca1315cf882297cf31a376452fa188
tree54ff6e574cae4ff64ce7a0e362090901fda88ca8
parent55ab9a72bd324648987063e283ab3d4228efdaef
mwifiex: fix crash in SDIO RX path

With patch '960d6d08e39 "mwifiex: delay skb allocation for RX
until cmd53 over"' we no more pass skb parameter to MP aggregation setup
helper function. We instead pass length to be aggregated.

This patch fixes an issue where we were passing length parameter of NULL
skb to aggregation routine resulting into crash. We should instead pass
rx_len received from mp_regs.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/sdio.c