From c60a9607751ce533681f702d1575638ad7419c04 Mon Sep 17 00:00:00 2001 From: Christian Engelmayer Date: Wed, 7 May 2014 21:42:27 +0200 Subject: [PATCH] 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 Acked-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed