HomeFreeBSD

linuxkpi: remove invalid KASSERT from hash_add_rcu

Description

linuxkpi: remove invalid KASSERT from hash_add_rcu

hash_add_rcu asserted that the node's prev pointer was NULL in an
attempt to detect addition of a node already on a list, but the caller
is not required to provide a zeroed node.

Reported in https://github.com/freebsd/drm-kmod/issues/282

Reviewed by: bz, manu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D43645

(cherry picked from commit 7e77089dccd702eb767350a8bd3d20102c4fb591)

Details

Provenance
emasteAuthored on Jan 29 2024, 2:25 PM
Reviewer
bz
Differential Revision
D43645: linuxkpi: remove invalid KASSERT from hash_add_rcu
Parents
rG464fa66f639b: ssh: Update to OpenSSH 9.7p1
Branches
Unknown
Tags
Unknown