mwifiex: fix potential out-of-boundary access to ibss rate table
authorBing Zhao <bzhao@marvell.com>
Fri, 8 Mar 2013 04:00:16 +0000 (20:00 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Mar 2013 20:37:48 +0000 (15:37 -0500)
commit5f0fabf84d7b52f979dcbafa3d3c530c60d9a92c
tree5bcad5779eb68683ad464df885c1a5e7c6ea4a7d
parent930df2dfc7073c9ed2d0b47a08e47027ae83c545
mwifiex: fix potential out-of-boundary access to ibss rate table

smatch found this error:

CHECK   drivers/net/wireless/mwifiex/join.c
  drivers/net/wireless/mwifiex/join.c:1121
  mwifiex_cmd_802_11_ad_hoc_join()
  error: testing array offset 'i' after use.

Cc: <stable@vger.kernel.org> # 3.0+
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/join.c