mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
inpcb: refcount_release() returns a bool
No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc.
This commit is contained in:
parent
775da7f8a9
commit
c7ea65ec69
1 changed files with 2 additions and 2 deletions
|
|
@ -1728,7 +1728,7 @@ in_pcbrele_rlocked(struct inpcb *inp)
|
|||
|
||||
INP_RLOCK_ASSERT(inp);
|
||||
|
||||
if (refcount_release(&inp->inp_refcount) == 0)
|
||||
if (!refcount_release(&inp->inp_refcount))
|
||||
return (false);
|
||||
|
||||
MPASS(inp->inp_flags & INP_FREED);
|
||||
|
|
@ -1745,7 +1745,7 @@ in_pcbrele_wlocked(struct inpcb *inp)
|
|||
|
||||
INP_WLOCK_ASSERT(inp);
|
||||
|
||||
if (refcount_release(&inp->inp_refcount) == 0)
|
||||
if (!refcount_release(&inp->inp_refcount))
|
||||
return (false);
|
||||
|
||||
MPASS(inp->inp_flags & INP_FREED);
|
||||
|
|
|
|||
Loading…
Reference in a new issue