staging: rtl8188eu: fix potential leak in rtw_mp_QueryDrv()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:32:30 +0000 (21:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 16:43:52 +0000 (01:43 +0900)
commit3dad0d1e40285fb8a5c6b878c5ac5eb556f9dd9e
tree961385df5002e88345ad8028da4f894e31ca2d4d
parent5d57f1e8f6699653f2e5b7c9dfad6b0dd0c8dcd3
staging: rtl8188eu: fix potential leak in rtw_mp_QueryDrv()

Function rtw_mp_QueryDrv() 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 - CID 1077713.

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