mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
rsi: release skb if rsi_prepare_beacon fails
commit d563131ef2 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fb683b5e3f
commit
5da96cc316
@@ -1583,6 +1583,7 @@ static int rsi_send_beacon(struct rsi_common *common)
|
||||
skb_pull(skb, (64 - dword_align_bytes));
|
||||
if (rsi_prepare_beacon(common, skb)) {
|
||||
rsi_dbg(ERR_ZONE, "Failed to prepare beacon\n");
|
||||
dev_kfree_skb(skb);
|
||||
return -EINVAL;
|
||||
}
|
||||
skb_queue_tail(&common->tx_queue[MGMT_BEACON_Q], skb);
|
||||
|
||||
Reference in New Issue
Block a user