]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48f94f4b7d6d2e0b0a881cf50c1fac572f5da6d3
tree961385df5002e88345ad8028da4f894e31ca2d4d
parent42d86dbea8c88e04663366864f3866bd3f189140
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