]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6656: fix potential leak in vt6656_hostap_ioctl()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:43:37 +0000 (21:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:30:20 +0000 (13:30 -0700)
commitfb0563444ed1c3bdd58c132445ec5a69d4390600
tree8c95735ce3b2fc1885f4f48ca7b1c4f20c6719a4
parent959a59782402b2375ff064c2ef11867d6e8bdd86
staging: vt6656: fix potential leak in vt6656_hostap_ioctl()

Commit fe849200 (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 <cengelma@gmx.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/hostap.c