wl12xx: Validate FEM index from ini file and FW
commit2131d3c2f99b081806fdae7662c92fe6acda52af
authorPontus Fuchs <pontus.fuchs@gmail.com>
Tue, 18 Oct 2011 07:23:41 +0000 (18 09:23 +0200)
committerLuciano Coelho <coelho@ti.com>
Thu, 1 Dec 2011 13:55:42 +0000 (1 15:55 +0200)
tree8250d3c6a0062f9561dbaefa0c30bb3ea2247f7f
parente4da3fbfbd1de56d2367653e3823e6445e49f8a9
wl12xx: Validate FEM index from ini file and FW

Check for out of bound FEM index to prevent reading beyond ini
memory end.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Cc: stable@kernel.org
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/cmd.c