Skip to content

Commit 832cc98

Browse files
jerome-pouillergregkh
authored andcommitted
staging: wfx: fix double free
In case of error in wfx_probe(), wdev->hw is freed. Since an error occurred, wfx_free_common() is called, then wdev->hw is freed again. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Fixes: 4033714 ("staging: wfx: fix init/remove vs IRQ race") Link: https://lore.kernel.org/r/20200505123757.39506-4-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 01088cd commit 832cc98

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/staging/wfx/main.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ int wfx_probe(struct wfx_dev *wdev)
469469

470470
err2:
471471
ieee80211_unregister_hw(wdev->hw);
472-
ieee80211_free_hw(wdev->hw);
473472
err1:
474473
wfx_bh_unregister(wdev);
475474
return err;

0 commit comments

Comments
 (0)