]> git.karo-electronics.de Git - linux-beck.git/commit
brcmfmac: fix txglomming scatter-gather packet transfers
authorArend van Spriel <arend@broadcom.com>
Thu, 20 Feb 2014 17:55:55 +0000 (18:55 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Feb 2014 20:53:20 +0000 (15:53 -0500)
commit1eb43018673e735ea9cd756970f4e71ca01a5f21
treef07937918d7aada114b113c422dc7722420995c7
parent21f8aaee0c62708654988ce092838aa7df4d25d8
brcmfmac: fix txglomming scatter-gather packet transfers

The driver concatenates multiple packets in one MMC transfer. For
scatter-gather to work the total length need to be multiple of 512
bytes. A pre-allocated buffer was used to add padding to accomplish
that. However, the length was not properly set and it was freed after
the first transfer causing a crash.

Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c