X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fcore%2Fneighbour.c;h=65f01f71b3f34ceb0498cf5149a220fd4f178ad1;hb=ee5c2ab09b79d3aba3515a3eae7c5cf1e2cbc569;hp=3896de79dfbf0dcb0214425829068b693740bc21;hpb=b9f5f52cca3e94f1e7509f366aa250ebbe1ed0b5;p=karo-tx-linux.git diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 3896de79dfbf..65f01f71b3f3 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1714,7 +1714,8 @@ static int neightbl_fill_parms(struct sk_buff *skb, struct neigh_parms *parms) return nla_nest_end(skb, nest); nla_put_failure: - return nla_nest_cancel(skb, nest); + nla_nest_cancel(skb, nest); + return -EMSGSIZE; } static int neightbl_fill_info(struct sk_buff *skb, struct neigh_table *tbl,