From: Christian Engelmayer Date: Wed, 7 May 2014 19:42:27 +0000 (+0200) Subject: staging: rtl8188eu: fix potential leak in update_bcn_wps_ie() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~413 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c60a9607751ce533681f702d1575638ad7419c04;p=pandora-kernel.git staging: rtl8188eu: fix potential leak in update_bcn_wps_ie() Fix a potential leak in the error path of function update_bcn_wps_ie(). Move the affected input verification to the beginning of the function so that it may return directly without leaking already allocated memory. Detected by Coverity - CID 1077718. Signed-off-by: Christian Engelmayer Acked-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed