Commit c197a403 authored by Jan Kasprzak's avatar Jan Kasprzak Committed by Hideaki Yoshifuji

[NET]: Do not send negative 2nd arg to skb_put().

With help from Yoshfuji Hideaki.
parent a1c1b176
......@@ -381,7 +381,7 @@ static int dn_fib_fill_rule(struct sk_buff *skb, struct dn_fib_rule *r, struct n
nlmsg_failure:
rtattr_failure:
skb_put(skb, b - skb->tail);
skb_trim(skb, b - skb->data);
return -1;
}
......
......@@ -438,7 +438,7 @@ static __inline__ int inet_fill_rule(struct sk_buff *skb,
nlmsg_failure:
rtattr_failure:
skb_put(skb, b - skb->tail);
skb_trim(skb, b - skb->data);
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment