aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/gen_stats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c
index 0452eb27a272..ddedf211e588 100644
--- a/net/core/gen_stats.c
+++ b/net/core/gen_stats.c
@@ -27,7 +27,8 @@
27static inline int 27static inline int
28gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size) 28gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size)
29{ 29{
30 NLA_PUT(d->skb, type, size, buf); 30 if (nla_put(d->skb, type, size, buf))
31 goto nla_put_failure;
31 return 0; 32 return 0;
32 33
33nla_put_failure: 34nla_put_failure: