]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188eu: fix potential leak in update_bcn_wps_ie()
authorChristian Engelmayer <cengelma@gmx.at>
Wed, 7 May 2014 19:42:27 +0000 (21:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 16:45:49 +0000 (01:45 +0900)
commitf66966a67f7e3cf7930c72eb6ce4cc57d4053779
treea9266f8bf049514700cd8ce74c13a81b9a518845
parent3405ce31adb84c9c2044d7696a94e328d68b9e56
staging: rtl8188eu: fix potential leak in update_bcn_wps_ie()

Fix a potential leak in the error path of function update_bcn_wps_ie().
Move the affected input verification to the beginning of the function so
that it may return directly without leaking already allocated memory.
Detected by Coverity - CID 1077718.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ap.c