]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitc60a9607751ce533681f702d1575638ad7419c04
treea9266f8bf049514700cd8ce74c13a81b9a518845
parente0e2c5cde57d4b0c3af2998c3a591f3db75ce7eb
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