]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r309404:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 19 Dec 2016 09:45:23 +0000 (09:45 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 19 Dec 2016 09:45:23 +0000 (09:45 +0000)
commit159a8c83f0d1628c5cbc7f73056666dfaa84d7df
treebbd95d49f968931c17ee72663d2b2154c8428d61
parent8dd4778c2589b9b455d34eaaaef1822c1b565486
MFC r309404:
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@310249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netgraph/ng_base.c