wl12xx: Validate FEM index from ini file and FW
commit4b2bb3c98c134fb26332afd5ad54078c53a30c44
authorPontus Fuchs <pontus.fuchs@gmail.com>
Tue, 18 Oct 2011 07:23:41 +0000 (18 09:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:35:01 +0000 (12 11:35 -0800)
tree931168dcddd6eecdd02f5ab8caf66e001363dba5
parent68530d7210025a1e395819b774fcffaf943dd8f3
wl12xx: Validate FEM index from ini file and FW

commit 2131d3c2f99b081806fdae7662c92fe6acda52af upstream.

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

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Reviewed-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/wl12xx/cmd.c