mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
Avoid panic from ng_uncallout when unpluggin ethernet cable with active
PPTP VPN connection. Submitted by: Michael Zhilin <mizhka@gmail.com> Reviewed by: ngie MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D7209
This commit is contained in:
parent
f7c7398485
commit
2f632dbb0b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303848
@ -3815,7 +3815,7 @@ ng_uncallout(struct callout *c, node_p node)
|
||||
item = c->c_arg;
|
||||
/* Do an extra check */
|
||||
if ((rval > 0) && (c->c_func == &ng_callout_trampoline) &&
|
||||
(NGI_NODE(item) == node)) {
|
||||
(item != NULL) && (NGI_NODE(item) == node)) {
|
||||
/*
|
||||
* We successfully removed it from the queue before it ran
|
||||
* So now we need to unreference everything that was
|
||||
|
Loading…
Reference in New Issue
Block a user