]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/gen_stats.c
Merge tag 'for-3.5' of git://openrisc.net/jonas/linux
[karo-tx-linux.git] / net / core / gen_stats.c
index 0452eb27a2724dcd3782f5acb15be04e7efba47e..ddedf211e588146f17eb2e147307d04991720170 100644 (file)
@@ -27,7 +27,8 @@
 static inline int
 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size)
 {
-       NLA_PUT(d->skb, type, size, buf);
+       if (nla_put(d->skb, type, size, buf))
+               goto nla_put_failure;
        return 0;
 
 nla_put_failure: