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)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 1 Oct 2019 09:18:48 +0000 (12:18 +0300)
commitd563131ef23cbc756026f839a82598c8445bc45f
treee4f89f8d8e9b45f3b8d01e7f40e07776e1ddff3b
parent0d32f5d93bbaeb57b607cb5cb1c67626d5754905
rsi: release skb if rsi_prepare_beacon fails

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>
drivers/net/wireless/rsi/rsi_91x_mgmt.c