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)
commite72f8762f8c8f81d4692c485dc85020b3ad160da
treef759669f255b0bedfe95942d0d0b8f112fa6d045
parent6b8c28192da7e15adb9c23583603cae49b5980c5
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