mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[RTNETLINK]: Don't return error on no-metrics.
Instead just cancel the nested attribute and return 0. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2809486424
commit
a57d27fc71
1 changed files with 4 additions and 2 deletions
|
@ -202,8 +202,10 @@ int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!valid)
|
if (!valid) {
|
||||||
goto nla_put_failure;
|
nla_nest_cancel(skb, mx);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return nla_nest_end(skb, mx);
|
return nla_nest_end(skb, mx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue