mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 03:24:55 +08:00
ibmvnic: Free RX socket buffer in case of adapter error
If a RX buffer is returned to the client driver with an error, free the corresponding socket buffer before continuing. Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6e4842ddfc
commit
4b9b0f0135
@ -1869,6 +1869,7 @@ restart_poll:
|
||||
be16_to_cpu(next->rx_comp.rc));
|
||||
/* free the entry */
|
||||
next->rx_comp.first = 0;
|
||||
dev_kfree_skb_any(rx_buff->skb);
|
||||
remove_buff_from_pool(adapter, rx_buff);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user