From: Dan Carpenter Date: Wed, 18 Apr 2012 06:48:59 +0000 (+0300) Subject: Staging: wlan-ng: off by one in prism2mgmt_scan_results() X-Git-Tag: v3.5-rc1~145^2~229^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb46f130a033ed812ccc24f5fd4f34648650d240;p=pandora-kernel.git Staging: wlan-ng: off by one in prism2mgmt_scan_results() Count is used to cap "req->bssindex.data" which is used as an offset into the hw->scanresults->info.hscanresult.result[] array. The array has only HFA384x_SCANRESULT_MAX (31) elements so the 32 is off by one. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed