Fix return value from ng_uncallout().
authorhselasky <hselasky@FreeBSD.org>
Fri, 2 Dec 2016 09:29:22 +0000 (09:29 +0000)
committerhselasky <hselasky@FreeBSD.org>
Fri, 2 Dec 2016 09:29:22 +0000 (09:29 +0000)
commit4109d66dead1f9819f166d968d00015b676f19fa
treeea8dff6e9dbb664c3ebe30f97072c313fced1c74
parentfef7ed379079bbde5933bec3cdf991ce8f90f2f2
Fix return value from ng_uncallout().

callout_stop() recently started returning -1 when the callout is already
stopped, which is not handled by the netgraph code. Properly filter
the return value. Netgraph callers only want to know if the callout
was cancelled and not draining or already stopped.

Discussed with: julian, glebius
MFC after: 2 weeks
sys/netgraph/ng_base.c