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

Function rtw_wx_set_enc_ext() 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 1077712.

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