HomeFreeBSD

locks: fix a long standing bug for primitives with kdtrace but without spinning

Description

locks: fix a long standing bug for primitives with kdtrace but without spinning

In such a case the second argument to lock_delay_arg_init was NULL which was
immediately causing a null pointer deref.

Since the sructure is only used for spin count, provide a dedicate routine
initializing it.

Reported by: andrew

Details

Provenance
mjgAuthored on
Parents
rS363450: Rank balanced (RB) trees are a class of balanced trees that includes
Branches
Unknown
Tags
Unknown