From: Christian Engelmayer Date: Wed, 7 May 2014 19:43:37 +0000 (+0200) Subject: staging: vt6656: fix potential leak in vt6656_hostap_ioctl() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~910 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=721b79d12fef7f13c0ac2cabb7cce39976769fcf;p=pandora-kernel.git staging: vt6656: fix potential leak in vt6656_hostap_ioctl() Commit fb841d67 (staging: vt6656: don't leak 'param' in vt6656_hostap_ioctl() when returning -EOPNOTSUPP) cleaned up direct returns in the ioctl switch statement that leaked already allocated memory. Fix the same issue for VIAWGET_HOSTAPD_SCAN_REQ and VIAWGET_HOSTAPD_MLME that are not supported by this driver. Detected by Coverity - CID 144381. Signed-off-by: Christian Engelmayer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed