]> 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)
commitc8d8d773b8912281f8cf5e535d07f6da480f8cd4
treef759669f255b0bedfe95942d0d0b8f112fa6d045
parent1fffb6b10ca9d51cf0bb6d08b79bfa9374727f15
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