rsi: release skb if rsi_prepare_beacon fails
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Sat, 14 Sep 2019 00:08:11 +0000 (19:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:37:19 +0000 (20:37 +0100)
commit0d8b2921af273b9545e16ad21375fabcb647c56e
tree3c2a43dd3cc967006020bb6491e48f86dab8f4f6
parenta844dc4c544291470aa69edbe2434b040794e269
rsi: release skb if rsi_prepare_beacon fails

commit d563131ef23cbc756026f839a82598c8445bc45f upstream.

In rsi_send_beacon, if rsi_prepare_beacon fails the allocated skb should
be released.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rsi/rsi_91x_mgmt.c