]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sched/sch_hfsc.c
netlink: Improve returned error codes
[net-next-2.6.git] / net / sched / sch_hfsc.c
index 87293d0db1d7fe1d64a162eefbc70c49278ffd6b..fdfaa3fcc16d861ed2b14dc3511bea66cf206611 100644 (file)
@@ -1360,7 +1360,7 @@ hfsc_dump_class(struct Qdisc *sch, unsigned long arg, struct sk_buff *skb,
 
  nla_put_failure:
        nla_nest_cancel(skb, nest);
-       return -1;
+       return -EMSGSIZE;
 }
 
 static int