From: Bing Zhao Date: Tue, 15 Jul 2014 03:53:34 +0000 (-0700) Subject: mwifiex: remove redundant TDLS setup action frame check and avoid leaks X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f95f59fe5d2b05a0333214eeba78690081ee5f70;p=pandora-kernel.git mwifiex: remove redundant TDLS setup action frame check and avoid leaks The unwanted frame types are already handled in 'default' case of the switch/case below. The str_ptr is allocated but it can be leaked if the length check fails in the REQUEST/RESP cases. Fix it by allocating sta_ptr after the length checks. Reported-by: Paul Stewart Signed-off-by: Bing Zhao Signed-off-by: Avinash Patil Signed-off-by: Paul Stewart Signed-off-by: John W. Linville --- Reading git-diff-tree failed