Skip to content

Commit

Permalink
kdebug_secasv: Update for recent locking changes.
Browse files Browse the repository at this point in the history
Reviewed by:	kp
Fixes:		0361f16 ipsec: replace SECASVAR  mtx by rmlock
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D37690
  • Loading branch information
bsdjhb authored and fichtner committed Dec 16, 2022
1 parent af1db79 commit d5d4d05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sys/netipsec/key_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,9 +882,11 @@ kdebug_secasv(struct secasvar *sav)
kdebug_secnatt(sav->natt);
if (sav->replay != NULL) {
KEYDBG(DUMP,
SECASVAR_LOCK(sav);
SECASVAR_RLOCK_TRACKER;

SECASVAR_RLOCK(sav);
kdebug_secreplay(sav->replay);
SECASVAR_UNLOCK(sav));
SECASVAR_RUNLOCK(sav));
}
printf("}\n");
}
Expand Down

0 comments on commit d5d4d05

Please sign in to comment.