HomeFreeBSD

gpioc: Fix handling of priv data during open

Description

gpioc: Fix handling of priv data during open

Fix the ordering of priv data creation with setting priv data. This
handles failure better and resolves a panic when repeatedly running
tools/tools/gpioevents.

Explicitly initialise more fields in priv data while we are here.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46568

Details

Provenance
thjAuthored on Sep 26 2024, 9:13 AM
Reviewer
markj
Differential Revision
D46568: gpioc: Fix handling of priv data during open
Parents
rG78e1b031d2e8: tcp: improve MAC error handling for SYN segments
Branches
Unknown
Tags
Unknown