Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01e123d7 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

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: default avatarWANG Cong <wcong@critical-links.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5dbaec5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,