staging: vt6656: don't leak 'param' in vt6656_hostap_ioctl() when returning -EOPNOTSUPP
authorJesper Juhl <jj@chaosbits.net>
Thu, 26 Jul 2012 21:43:22 +0000 (23:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 02:09:06 +0000 (19:09 -0700)
commitfb841d676bdb266e151398db2c28a1c4d0999219
tree2ed51c6b41113d15d17d34134aa13e05145c2ad7
parentb95dd03df2b9f20b4df35ae5f18430849908a7ed
staging: vt6656: don't leak 'param' in vt6656_hostap_ioctl() when returning -EOPNOTSUPP

Don't return -EOPNOTSUPP directly in switch case's since it'll leak
the memory allocated to 'param' when that variable goes out of scope
without having been assigned to anything.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/hostap.c