]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: restore current SDIO write port in failure cases
authorAvinash Patil <patila@marvell.com>
Wed, 14 May 2014 02:49:42 +0000 (19:49 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 May 2014 18:26:53 +0000 (14:26 -0400)
commit6e8a6c67690e6bb5c2d3c1e4863b01c6566d484c
tree6d6788216eb54ef40c3337877412f308e0c31318
parent8ba7545f51f1d105aed8119112173d3042bb5dbf
mwifiex: restore current SDIO write port in failure cases

During SDIO MP aggregation, we at first acquire current write
port to write data onto and then proceed with using this port
for SDIO write. If error occurs later in mwifiex_write_data_sync
because device is suspended or SDIO write failure, we do not
restore current write port and write bitmap. This results into
leaking one port and hole in SDIO write port bitmap.
Restore current write port and reset bitmap accordingly in
failure cases to avoid this.

Reported-by: James Cameron <quozl@laptop.org>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Reviewed-by: James Cameron <quozl@laptop.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sdio.c