wlan-ng: add a bounds check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Feb 2013 05:13:45 +0000 (08:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:47:13 +0000 (09:47 -0700)
commit72c1c06d91c54beee35613434a5efdd7e8909302
tree3201360606bb541f3829a5d0516a68b48bfc632f
parenta0cdd2e4a96a253c83e8d7856e39b9807805c6c4
wlan-ng: add a bounds check

I'm not sure where these results come from, but it can't hurt to
add a sanity check the array offset.  The .results[] array on the
next line has HFA384x_CHINFORESULT_MAX (16) elements.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2sta.c