diff options
author | WANG Cong <wcong@critical-links.com> | 2008-06-27 19:51:35 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-27 19:51:35 -0700 |
commit | 01e123d79a23000f85c4cfb12a957908c0b2c3d8 (patch) | |
tree | bcce410625a8cca323dd02b153df785272f65ed7 | |
parent | 5dbaec5dc6a4895db8bf9765a867418481ed7311 (diff) | |
download | linux-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>
-rw-r--r-- | net/sched/sch_generic.c | 2 |
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, |