summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWANG Cong <wcong@critical-links.com>2008-06-27 19:51:35 -0700
committerDavid S. Miller <davem@davemloft.net>2008-06-27 19:51:35 -0700
commit01e123d79a23000f85c4cfb12a957908c0b2c3d8 (patch)
treebcce410625a8cca323dd02b153df785272f65ed7 /net
parent5dbaec5dc6a4895db8bf9765a867418481ed7311 (diff)
downloadlinux-01e123d79a23000f85c4cfb12a957908c0b2c3d8.tar.bz2
pkt_sched: ERR_PTR() ususally encodes an negative errno, not positive.
Note, in the following patch, 'err' is initialized as: int err = -ENOBUFS; Signed-off-by: WANG Cong <wcong@critical-links.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/sched/sch_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index d355e5e47fe3..13afa7214392 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -468,7 +468,7 @@ struct Qdisc *qdisc_alloc(struct net_device *dev, struct Qdisc_ops *ops)
return sch;
errout:
- return ERR_PTR(-err);
+ return ERR_PTR(err);
}
struct Qdisc * qdisc_create_dflt(struct net_device *dev, struct Qdisc_ops *ops,