mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:40:52 +07:00
p54: Use skb_peek_tail() instead of direct head pointer accesses.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1181d629cc
commit
e3554197fc
@ -121,8 +121,8 @@ static int p54_assign_address(struct p54_common *priv, struct sk_buff *skb)
|
||||
}
|
||||
if (unlikely(!target_skb)) {
|
||||
if (priv->rx_end - last_addr >= len) {
|
||||
target_skb = priv->tx_queue.prev;
|
||||
if (!skb_queue_empty(&priv->tx_queue)) {
|
||||
target_skb = skb_peek_tail(&priv->tx_queue);
|
||||
if (target_skb) {
|
||||
info = IEEE80211_SKB_CB(target_skb);
|
||||
range = (void *)info->rate_driver_data;
|
||||
target_addr = range->end_addr;
|
||||
|
Loading…
Reference in New Issue
Block a user