]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: rtl8188eu: fix potential leak in rtw_wx_read32()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:30:23 +0000 (21:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 16:43:52 +0000 (01:43 +0900)
commitd6a6c916189e4ef0512a1620afc3c88a114e825d
tree5c5309568c23354ef4b6622322df1254ed70ef9e
parent5b0a7eae9fc51a891c1b5f5cdaaf05d0c4876e16
staging: rtl8188eu: fix potential leak in rtw_wx_read32()

Function rtw_wx_read32() 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 1077711.

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