pkt_sched: ERR_PTR() ususally encodes an negative errno, not positive.
commit01e123d79a23000f85c4cfb12a957908c0b2c3d8
authorWANG Cong <wcong@critical-links.com>
Sat, 28 Jun 2008 02:51:35 +0000 (27 19:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Jun 2008 02:51:35 +0000 (27 19:51 -0700)
treebcce410625a8cca323dd02b153df785272f65ed7
parent5dbaec5dc6a4895db8bf9765a867418481ed7311
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>
net/sched/sch_generic.c