Commit 1878c5b9 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman
Browse files

staging: wfx: Fix a memory leak in 'wfx_upload_beacon'



The current code is a no-op, because all it can do is 'dev_kfree_skb(NULL)'
Remove the test before 'dev_kfree_skb()'

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20191102155945.20205-1-christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d3baf1e0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -906,7 +906,6 @@ static int wfx_upload_beacon(struct wfx_vif *wvif)
	wfx_fwd_probe_req(wvif, false);

done:
	if (!skb)
	dev_kfree_skb(skb);
	return ret;
}