From: Avinash Patil Date: Tue, 23 Jul 2013 02:17:46 +0000 (-0700) Subject: mwifiex: correct max IE length check for WPS IE X-Git-Tag: v3.12-rc1~132^2~297^2^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8795ca61e4ff3db70f2d072a28aaefc29f1a2301;p=pandora-kernel.git mwifiex: correct max IE length check for WPS IE This patch is bug fix for an invalid boundry check for WPS IE. We should check max IE length against defined macro; instead we were checking it against size of pointer. Fix it. Also move IE length check before allocation of memory. Signed-off-by: Avinash Patil Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed