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

(cherry picked from commit 64f4e2db6d19d8ab520903a197fcaa8cc7ab9f9a)

Details

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