diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-05-29 06:51:53 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-05-29 06:51:53 +0000 |
commit | 649ec70d5fead4127888075b93da24c738cc6b8a (patch) | |
tree | b35fd181457b89aeed08d2ee3d55c747f8a15c0d /sys/net/if_pppx.c | |
parent | 87cabdb321780767ada0acde0e78112d07062d22 (diff) |
Mark the descriptor as dead when starting to destroy it.
This help in case of a context switch inside if_detach().
From Vitaliy Makkoveev.
Diffstat (limited to 'sys/net/if_pppx.c')
-rw-r--r-- | sys/net/if_pppx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c index d3119e2f95f..e098a29a9cb 100644 --- a/sys/net/if_pppx.c +++ b/sys/net/if_pppx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppx.c,v 1.86 2020/05/26 08:02:54 mpi Exp $ */ +/* $OpenBSD: if_pppx.c,v 1.87 2020/05/29 06:51:52 mpi Exp $ */ /* * Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org> @@ -1004,6 +1004,7 @@ pppx_if_destroy(struct pppx_dev *pxd, struct pppx_if *pxi) struct pipex_session *session; NET_ASSERT_LOCKED(); + pxi->pxi_ready = 0; session = &pxi->pxi_session; ifp = &pxi->pxi_if; |