]> git.baikalelectronics.ru Git - kernel.git/commit
pkt_sched: ERR_PTR() ususally encodes an negative errno, not positive.
authorWANG Cong <wcong@critical-links.com>
Sat, 28 Jun 2008 02:51:35 +0000 (19:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Jun 2008 02:51:35 +0000 (19:51 -0700)
commitc9af41ea9cbd11734c76f53d892390db434d9e95
treebcce410625a8cca323dd02b153df785272f65ed7
parentbfe2f39ef990cbc790b5226ac3788f30784f16e8
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