]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe8492008a64b17b4a3466b34076bc6af3fb8644
tree2ed51c6b41113d15d17d34134aa13e05145c2ad7
parent9609ce369d4fee7ced209ce60d6dd0b1f4ef9526
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