]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188eu: fix potential leak in rtw_mp_SetRFPath()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:33:20 +0000 (21:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 16:43:52 +0000 (01:43 +0900)
commite58fcecc48b8b3fba2dc58497f6ae915c0c9abd6
tree950d4f567f9838bb110ea96fa29ae98fd103babf
parentd2cf2e2dbe37f93c332a28b929e48634dc232ace
staging: rtl8188eu: fix potential leak in rtw_mp_SetRFPath()

Function rtw_mp_SetRFPath() 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 1077714.

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