HomeFreeBSD

sound: Correctly check nvlist_unpack() error

Description

sound: Correctly check nvlist_unpack() error

The current check is never false and if nvlist_unpack() fails, we might
panic later down the road.

PR: 266144
Sponsored by: The FreeBSD Foundation
MFC after: 1 day
Reviewed by: dev_submerge.ch, emaste
Differential Revision: https://reviews.freebsd.org/D45237

Details

Provenance
christosAuthored on May 20 2024, 2:18 PM
Reviewer
dev_submerge.ch
Differential Revision
D45237: sound: Correctly check nvlist_unpack() error
Parents
rG074d337ad618: sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*
Branches
Unknown
Tags
Unknown