staging: rtl8188eu: fix potential leak in rtw_mp_pwrtrk()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:34:37 +0000 (21:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 16:43:53 +0000 (01:43 +0900)
commite0e2c5cde57d4b0c3af2998c3a591f3db75ce7eb
tree93f95921ac7581fec17ab6365b7daf15492bc543
parentc98acd000bc578f4a53c4879760d2d1ccdc794a9
staging: rtl8188eu: fix potential leak in rtw_mp_pwrtrk()

Function rtw_mp_pwrtrk() dynamically allocates a temporary buffer that
is not freed in all error paths. Use a centralized exit path and make sure
that all memory is freed correctly. Detected by Coverity - 1077715.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c