]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6655: don't leak when returning -EOPNOTSUPP in vt6655_hostap_ioctl
authorJesper Juhl <jj@chaosbits.net>
Mon, 30 Sep 2013 20:22:11 +0000 (22:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 01:34:00 +0000 (18:34 -0700)
commitb7ecf1b77b0141693da775ba1d16e23c53279e63
treef759669f255b0bedfe95942d0d0b8f112fa6d045
parentee5c65c047530e3f26f25451a2bae7da1fbeab8a
staging: vt6655: don't leak when returning -EOPNOTSUPP in vt6655_hostap_ioctl

Make sure we always free(param); and remove a redundant "goto out;"
just before we'll hit the label anyway.

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