mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 10:01:57 +00:00
dde_linux/usb: Don't treat trimming SKB to current len as error
The rndis_host driver calls skb_trim with the current SKB length which results in many "errors" logged. We shouldn't treat this condition as an error.
This commit is contained in:
parent
f15e8fec8f
commit
77010d6434
@ -551,7 +551,7 @@ unsigned char *skb_pull(struct sk_buff *skb, unsigned int len)
|
|||||||
*/
|
*/
|
||||||
void skb_trim(struct sk_buff *skb, unsigned int len)
|
void skb_trim(struct sk_buff *skb, unsigned int len)
|
||||||
{
|
{
|
||||||
if (skb->len <= len) {
|
if (skb->len < len) {
|
||||||
Genode::error("Error trimming to ", len, " bytes skb: ", skb, " data: ",
|
Genode::error("Error trimming to ", len, " bytes skb: ", skb, " data: ",
|
||||||
skb->data, " start: ", skb->start, " len ", skb->len);
|
skb->data, " start: ", skb->start, " len ", skb->len);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user