Commit graph

42406 commits

Author SHA1 Message Date
Mark Johnston
ea71ec44e2 virtio: Use device_set_descf()
No functional change intended.

MFC after:	1 week

(cherry picked from commit de140d60d5282b0dbf79979d04d5b6b11511e25d)
2024-06-09 09:37:56 -04:00
Mark Johnston
54c4a726f5 acpi: Use device_set_descf()
No functional change intended.

MFC after:	1 week

(cherry picked from commit bad36a49985c3cd7bfcb1b35ce3ae37f007843ce)
2024-06-09 09:37:55 -04:00
Mark Johnston
dd8575e19a qlnx: Use device_set_descf()
No functional change intended.

MFC after:	1 week

(cherry picked from commit 801b12ba89af6377e30c15b9b68443f0d60d50bf)
2024-06-09 09:37:53 -04:00
Mark Johnston
2b4333af7b siis: Use device_set_desc(f)()
No functional change intended.

MFC after:	1 week

(cherry picked from commit 17bfbc400f53ff1768c907b35c9cf045d540b8ab)
2024-06-09 09:37:52 -04:00
Mark Johnston
10f8a5c097 etherswitch: Use device_set_desc(f)()
No functional change intended.

MFC after:	1 week

(cherry picked from commit 54482989d34c94c6894cb51f65250a4d5946eb1b)
2024-06-09 09:37:51 -04:00
Mark Johnston
c5fe4fcda4 cxgbe: Use device_set_descf()
No functional change intended.

MFC after:	1 week

(cherry picked from commit a1b84451159fbad069ccaa4b5197a3fde7eae902)
2024-06-09 09:37:51 -04:00
Mark Johnston
8cf06a36c5 cxgb: Use device_set_descf()
No functional change intended.

MFC after:	1 week

(cherry picked from commit 796bcf184518ad7ac75b4abfd2bd351ea417fdb6)
2024-06-09 09:37:50 -04:00
Mark Johnston
18468b225c bhnd: Use device_set_descf()
Here we are in a device probe routine with no locks held.  M_WAITOK
allocations are ok.  No functional change intended.

MFC after:	1 week

(cherry picked from commit a866a40b9b8095a1a31eb22d575535c1f5fbc080)
2024-06-09 09:37:49 -04:00
Mark Johnston
19d8708817 ata: Use device_set_descf()
No functional change intended.

MFC after:	1 week

(cherry picked from commit 25b839dfd2aa60640c7b92abc69b11c107a95020)
2024-06-09 09:37:48 -04:00
Mark Johnston
6324f02689 ahci: Use device_set_desc(f)()
No functional change intended.

MFC after:	1 week

(cherry picked from commit a74b496507329665c6aa8d0ef2ea42c2fbd88c48)
2024-06-09 09:37:47 -04:00
Zhenlei Huang
5c20fc180d hidbus(4): Fix wrong assertion of bus
Reviewed by:	wulf
Fixes:		4151ac9f12 hidbus(4): Use generic hid methods to ...
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D45496

(cherry picked from commit 4eb82e65a73f6cd180700bb8ae47227a553f94ed)
2024-06-08 11:28:54 +08:00
Keith Reynolds
101f1a88de qlnxe: Fix multiple locking issues
Multiple issues are reported with WITNESS and code inspection of the
locking and lock initialization.

PR:		278084

(cherry picked from commit 1c45a62a2f667b45ec10a92ad58ff5a34e68b569)
2024-06-06 22:49:04 -07:00
Keith Reynolds
e4f48fc20b qlnxe: Fix promiscuous and allmulti settings
PR:		278087

(cherry picked from commit e3ec564ecb9c2daa96a8db36052e50ea554fe598)
2024-06-06 22:48:48 -07:00
Fuqian Huang
e84a661d54 qlnx: qlnxe: Fix kernel address leakage
In function qlnx_rdma_deregister_if,
the address of object rdma_if will be printed out.
rdma_if is the address of a global variable qlnxr_drv,
which is passed from dev/qlnx/qlnxr/qlnxr_os.c
A kernel address leakage happens.
Fix this by removing the printf statement.

PR:		238646

(cherry picked from commit 9370f49ad1c4625cd73c4d84d3e42ed3e20fabbf)
2024-06-06 22:48:21 -07:00
Fuqian Huang
265ca6efb4 qlxge: replace device_printf with QL_DPRINT2
QL_DPRINT2 checks the debug level first before printing.
Replace device_printf with QL_DPRINT2 to check debug level
first before printing out the kernel pointers.

PR:		238656

(cherry picked from commit ae389777583dca0e354fdd43aca3413e209160f4)
2024-06-06 22:48:05 -07:00
Fuqian Huang
748fa70c5d qlxgbe: fix debug prints in ql_os.c
QL_DPRINT2 checks the debug level first and then prints.
Replace device_printf with QL_DPRINT2 to check debug level
first before printing out the kernel pointers.

PR:		238655

(cherry picked from commit 3d6c7ee87e9d7f3c8f617c3803af3effa8eb8a16)
2024-06-06 22:47:32 -07:00
Fuqian
88462a368a qlxgbe: Remove pointer printing in ql_ioctl.c
PR:		238653
MFC after:	1 week

(cherry picked from commit a58b4ee025fcac480e44e1f56acffe2feacc5845)
2024-06-06 22:47:02 -07:00
Oleksandr Kryvulia
4987c12cb8 snd_hda: Add Lenovo X1 Carbon Gen11 support
MFC after:	2 days
Reviewed by:	christos
Differential Revision:	https://reviews.freebsd.org/D45361

(cherry picked from commit ef659a2d041c01b747ae4605160c24156cae081b)
2024-06-06 17:12:15 +02:00
Joshua Kinard
030596bfe4 kern: Remove leftover saf1761otg bits
Almost all code related to the saf1761 driver was removed in commit
44796b7e82, except for two small bits related to saf1761otg support.
This patch completes the removal.

PR:		279302
Signed-off-by:	Joshua Kinard <freebsd@kumba.dev>
Reviewed by:	mhorne
MFC after:	3 days
Fixes:		44796b7e82 ("mips: remove saf1761")

(cherry picked from commit 80828c6fab0292b5c5a34a63558d837cb9308fbd)
2024-06-06 11:23:01 -03:00
Emmanuel Vadot
91badda4a2 eqos: Call init earlier
Call the subclassed IF_EQOS_INIT before trying to read the mac, clocks
and reset needs to dealt with before we can read the registers.

(cherry picked from commit bd0771390ef532ce0ae3f39350acd540125e5620)
2024-06-05 10:16:33 +02:00
Emmanuel Vadot
0181a0e67c eqos: Unbreak fdt support
We need to enable the clocks and deassert the resets for eqos to work
correctly.

(cherry picked from commit 22029445cbef0ffc71196a6f38cee4738e9a6d0f)
2024-06-05 10:16:33 +02:00
Emmanuel Vadot
7c2a21107d eqos: Remove extra x in printf
No functional changes intended.

(cherry picked from commit 96812bd10b42294dbcd5ebe6dc006569ba85887c)
2024-06-05 10:16:33 +02:00
Zhenlei Huang
d98ced6588 mlx4, mlx5: Eliminate redundent NULL check for packet filter
mlx4 and mlx5 are Ethernet devices and ether_ifattach() does an
unconditional bpfattach(). From commit 16d878cc99 [1] and on, we
should not check ifp->if_bpf to tell us whether or not we have any bpf
peers that might be interested in receiving packets. And since commit
2b9600b449 [2], ifp->if_bpf can not be NULL even after the network
interface has been detached.

No functional change intended.

1. 16d878cc99 Fix the following bpf(4) race condition which can result in a panic
2. 2b9600b449 Add dead_bpf_if structure, that should be used as fake bpf_if during ifnet detach

Reviewed by:	kp, kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45196

(cherry picked from commit 2439ae948352766f6b993c5103a4c516376bec28)
2024-06-05 12:27:11 +08:00
Emmanuel Vadot
183b64dfd8 linuxkpi: spinlock: Simplify code
Just use a typedef for spinlock_t, no need to create a useless
structure.

Reviewed by:		bz, emaste
Sponsored by:		Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D45205

(cherry picked from commit ae38a1a1bfdf320089c254e4dbffdf4769d89110)

linuxkpi: Fix spin_lock_init

Some linux code re-init some spinlock so add MTX_NEW to mtx_init.

Reported by:	David Wolfskill <david@catwhisker.org>
Fixes:		ae38a1a1bfdf ("linuxkpi: spinlock: Simplify code")

(cherry picked from commit cff79fd02636f34010d8b835cc9e55401fa76e74)
2024-06-04 13:22:40 +02:00
Mark Johnston
54478f4b7e bnxt_re: Explicitly cast pointer-to-integer conversions
Reported by:	Jenkins
Fixes:	acd884dec99a ("RDMA/bnxt_re: Add bnxt_re RoCE driver")

(cherry picked from commit bbe42332e5b2cbe16a885360fad4462d13c7b357)
2024-06-03 13:23:15 -06:00
Sumit Saxena
93265fb21c RDMA/bnxt_re: Add bnxt_re RoCE driver
This patch introduces the RoCE driver for the
Broadcom NetXtreme-E 10/25/50/100/200G RoCE HCAs.

The RoCE driver is a two part driver that relies
on the bnxt_en NIC driver to operate. The changes
needed in the bnxt_en driver is included through
another patch "L2-RoCE driver communication interface"
in this set.

Presently, There is no user space support, Hence
recommendation to use the krping kernel module for
testing. User space support will be incorporated in
subsequent patch submissions.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D45011

(cherry picked from commit acd884dec99adcf8c4cdd0aa8a50be79c216f8e8)
2024-06-03 13:23:15 -06:00
Chandrakanth patil
7a63abf952 bnxt_en: Driver version update to 230.0.133.0
Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D45010

(cherry picked from commit 862af86f4b7d2aec0623d19796e79cf96b4c7af6)
2024-06-03 13:23:14 -06:00
Chandrakanth patil
7f352c7d5f bnxt_en: Firmware header version update to 1.10.3.42
This file is automatically generated from the firmware code to
export the driver interfaces.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D45009

(cherry picked from commit 3d8bbe001115f3e9742c128716335e654729ce1a)
2024-06-03 13:23:14 -06:00
Chandrakanth patil
9464f91b31 bnxt_en: Firmware error recovery support
Implement firmware error recovery support for Thor adapters.
This entails enabling the capability for the firmware to initiate
error recovery. Specifically, the firmware will send the reset notify
asynchronous event to notify the driver of an error and impending reset.
Subsequently, the driver will queue a task to execute the following steps.

1. Deactivate the allocated resources.
2. Await completion of the firmware's recovery process.
3. Configure the resources and reactivate the network interface.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D45008

(cherry picked from commit c9965974a52b5dfad1737706b7f2623d999fb569)
2024-06-03 13:23:14 -06:00
Chandrakanth patil
fba2468e16 bnxt_en: Added support for priority queues extended stats
Below priority queues extended stats are exposed to sysctl:

tx_bytes_pri{0-7}
rx_bytes_pri{0-7}
tx_packets_pri{0-7}
rx_packets_pri{0-7}

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D45007

(cherry picked from commit 032899b59c25389e60a0a092a0dad347102a6edc)
2024-06-03 13:23:14 -06:00
Chandrakanth patil
107e02d706 bnxt_en: L2-RoCE driver communication interface
- Added Aux bus support for RoCE.
- Implemented the ulp ops that are required by RoCE driver.
- Restructure context memory data structures
- DBR pacing support

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D45006

(cherry picked from commit 050d28e13cdede7528944c0abf8d0455729c63fd)
2024-06-03 13:23:14 -06:00
Chandrakanth patil
ac940a8b92 bnxt_en: Add PFC, ETS & App TLVs protocols support
Created new directory "bnxt_en" in /dev/bnxt and /modules/bnxt
and moved source files and Makefile into respective directory.

ETS support:

   - Added new files bnxt_dcb.c & bnxt_dcb.h
   - Added sysctl node 'dcb' and created handlers 'ets' and
     'dcbx_cap'
   - Add logic to validate user input and configure ETS in
     the firmware
   - Updated makefile to include bnxt_dcb.c & bnxt_dcb.h

PFC support:

   - Created sysctl handlers 'pfc' under node 'dcb'
   - Added logic to validate user input and configure PFC in
     the firmware.

App TLV support:

   - Created 3 new sysctl handlers under node 'dcb'
       - set_apptlv (write only): Sets a specified TLV
       - del_apptlv (write only): Deletes a specified TLV
       - list_apptlv (read only): Lists all APP TLVs configured
   - Added logic to validate user input and configure APP TLVs
     in the firmware.

Added Below DCB ops for management interface:

   - Set PFC, Get PFC, Set ETS, Get ETS, Add App_TLV, Del App_TLV
     Lst App_TLV

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D45005

(cherry picked from commit 35b53f8c989f62286aad075ef2e97bba358144f8)
2024-06-03 13:23:14 -06:00
Chandrakanth Patil
e7b0af020c if_bnxt: Set 1G/10G baseT force speed as auto speeds
The firmware lacks support for manually setting 1G and 10G baseT speeds.
However, the driver can enable auto speed masks to achieve automatic configuration
at these speeds.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42960

(cherry picked from commit 770e7ba3ebe87ba7ffc872c87de72707757b4e25)
2024-06-03 13:23:14 -06:00
Chandrakanth Patil
def6e32283 if_bnxt: 50G, 100G and 200G PAM4 support
Add support for 50G, 100G and 200G PAM4 support

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42959

(cherry picked from commit c63d67e137f353f4bc4d0d56bd793f83204a3e1e)
2024-06-03 13:23:13 -06:00
Sumit Saxena
43d9017a2f if_bnxt: Pluggable Module Display Support
This update enables the display of pluggable module information
to users via the ifconfig utility.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42958

(cherry picked from commit 3320f0f69f06df5c36daa8ff71e0c07908ff0f1a)
2024-06-03 13:23:13 -06:00
Chandrakanth Patil
9b5383c53e if_bnxt: Implementation of Extended Port Hardware Stats Support for THOR Controller
The newly added port extended hardware statistics are now accessible to
users through the sysctl interface. Also, Few obsolete stats are removed
and few stats are renamed.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42957

(cherry picked from commit d36b36621a9c0f785ebea495c57e975b8a526b67)
2024-06-03 13:23:13 -06:00
Chandrakanth Patil
1b5ff4b14d if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed
Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D429506

(cherry picked from commit 816abba22efcf1ba51f61b1d89320ca8b576274e)
2024-06-03 13:23:13 -06:00
Chandrakanth Patil
51f6f533ba if_bnxt: Update Firmware Header to Latest Version 1.10.2.136
Update Firmware Header to Latest Version 1.10.2.136.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42955

(cherry picked from commit 25f38d09907fdfcc473fdc53c17b7c2d8c7c09a1)
2024-06-03 13:23:13 -06:00
Chandrakanth Patil
baa7cf2524 if_bnxt: Update Maximum Configurable MTU from 9000 to 9600
Increasing the maximum configurable MTU from 9000 to 9600 to
align with the firmware's capability of handling an MTU up to 9600.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42954

(cherry picked from commit 8a3aab53e335dadb3c95c0eb0664143a955f1ab7)
2024-06-03 13:23:13 -06:00
Chandrakanth Patil
c75f0a568e if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings
Enabled User Configuration of 1G Speed on Wh+ SFP28 Port with AOC
cable.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42953

(cherry picked from commit 0f8d1a9e0cd26bf4dd0b2fe2d28c1ab15d03cce4)
2024-06-03 13:23:13 -06:00
Chandrakanth Patil
30ae347bc1 if_bnxt: Incorrect Labeling of Supported Medium in ifconfig -m <inf> Command
The 1G speed on DAC medium is incorrectly labeled as 1000baseT, it
should be 1000baseCX. Updated the label accordingly.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42952

(cherry picked from commit c5108e37fbf93a538c76325766b8a3d76a72f119)
2024-06-03 13:23:12 -06:00
Chandrakanth Patil
6288beb31e if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot plug
Currently, if a media type (e.g., DAC) is hot-plugged out and another type
(e.g., optical cable) is hot-plugged in, the new speed is not reflected in
ifconfig. This occurs when the driver fails to update speeds with unchanged
tx and rx flow control.

To fix, a phy_type check ensures update of phy speeds upon detecting the new
phy.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42951

(cherry picked from commit 7cbffbfcd9a5185be61bec65790674159bb7c0a8)
2024-06-03 13:23:12 -06:00
Sumit Saxena
4083c62d69 if_bnxt: Correcting the firmware package version parsing logic
The firmware package version currently appears as "Unknown" through
the sysctl interface. The parsing logic for extracting the firmware
package version from the package log has been modified to ensure
compatibility with all controllers.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D42950

(cherry picked from commit e436cb79666db3c8bb167d47ca9803c36013e32c)
2024-06-03 13:23:12 -06:00
Brooks Davis
38286d9f68 pcm: centralize 32-bit ioctl compat
Move all handlng of struct sndstioc_nv_arg(32) to sndstat_ioctl() and
make the functions that actually do the work take a buffer and size or
size pointer.  The 32-bit compat work is minimal so just inline it.

Remove checks that we've got a 32-bit process for 32-bit ioctls.  We
don't check that default ioctls are from 64-bit processes on 64-bit
systems.

Reviewed by:	christos
Differential Revision:	https://reviews.freebsd.org/D45307

(cherry picked from commit fb9013f215211f013eccc54786f299e39a1f8773)
2024-05-26 15:51:33 +02:00
Christos Margiolis
0aa767021c sound: Fix minchn, maxchn and fmts in sndstat_get_caps()
The current implementation (incorrectly) passes the channel encoding
value to AFMT_CHANNEL(), which will always return 0, since the channel
number bits are masked out by AFMT_ENCODING().

Also add missing fmts initialization and aggregate encoding formats into
it directly.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 day
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D45312

(cherry picked from commit 425a7bc465d4a6393c88c2e79c5ad77befda2a97)
2024-05-25 21:31:26 +02:00
Christos Margiolis
ab7c894154 sound: Handle unavailable devices in various OSS IOCTLs
mixer(8)'s -a option is used to print information about all mixer
devices in the system. To do this, it loops from 0 to
mixer_get_nmixers(), and tries to open "/dev/mixer%d". However, this
approach doesn't work when there are disabled/unregistered mixers in the
system, or when an audio device simply doesn't have a mixer.

mixer_get_nmixers() calls SNDCTL_SYSINFO and returns
oss_sysinfo->nummixers, whose value is the number of currently _enabled_
mixers only. Taking the bug report mentioned below (277615) as an
example, suppose a system with 8 mixer devices total, but 3 of them are
either disabled or non-existent, which means they will not show up under
/dev, meaning we have 5 enabled mixer devices, which is also what the
value of oss_sysinfo->nummixers will be. What mixer(8) will do is loop
from 0 to 5 (instead of 8), and start calling mixer_open() on
/dev/mixer0, up to /dev/mixer4, and as is expected, the first call will
fail right away, hence the error shown in the bug report.

To fix this, modify oss_sysinfo->nummixers to hold the value of the
maximum unit in the system, which, although not necessarily "correct",
is more intuitive for applications that will want to use this value to
loop through all mixer devices.

Additionally, notify applications that a device is
unavailable/unregistered instead of skipping it. The current
implementations of SNDCTL_AUDIOINFO, SNDCTL_MIXERINFO and
SNDCTL_CARDINFO break applications that expect to get information about
a device that is skipped. Related discussion can be found here:
https://reviews.freebsd.org/D45135#1029526

It has to be noted, that other applications, apart from mixer(8), suffer
from this.

PR:		277615
Sponsored by:	The FreeBSD Foundation
MFC after:	1 day
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D45256

(cherry picked from commit 5d980fadf73df64a1e0eda40a93170ed76ce6f14)
2024-05-25 21:30:40 +02:00
Christos Margiolis
e8a80b4e50 sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO
FreeBSD's implementation of SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO
does not exactly work as intended. The problem is essentially that both
IOCTLs return the same information, while in fact the information
returned currently by dsp_oss_audioinfo() is what _only_
SNDCTL_ENGINEINFO is meant to return.

This behavior is also noted in the OSS manual [1] (see bold paragraph in
"Audio engines and device files" section), but since e8c0d15a64fa
("sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)") we can
actually fix this, because we now expose only a single device for each
soundcard, and create the engines (channels) internally.
SNDCTL_ENGINEINFO will now report info about all channels in a given
device, and SNDCTL_AUDIOINFO[_EX] will only report information about
/dev/dspX.

To make this work, we also have to modify the SNDCTL_SYSINFO IOCTL to
report the number of audio devices and audio engines correctly.

While here, modernize the minimum and maximum channel counting in both
SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO. Currently these IOCTLs will
report only up to 2 channels, which is no longer the case.

[1] http://manuals.opensound.com/developer/SNDCTL_AUDIOINFO.html

PR:		246231, 252761
Sponsored by:	The FreeBSD Foundation
MFC after:	1 day
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D45164

(cherry picked from commit e07f9178502b7cbc0769fc10e99ad0d013f437fd)
2024-05-25 21:30:26 +02:00
Lutz Bichler
1fb0a65ab2 snd_hda: Add patch for Asus UX331UAL
PR:		242802
MFC after:	1 day
Differential Revision:	https://reviews.freebsd.org/D45238

(cherry picked from commit 93ad59a251897431627345c287390ae134925a95)
2024-05-23 02:24:15 +02:00
Lexi Winter
07f3a9eb1c alc(4): disable MSI-X by default on Killer cards
Several users with alc(4)-based "Killer" Ethernet cards have reported
issues with this driver not passing traffic, which are solved by
disabling MSI-X using the provided tunable.

To work around this issue, disable MSI-X by default on this card.

This is done by having msix_disable default to 2, which means
"auto-detect".  The user can still override this to either 0 or 1 as
desired.

Since these are slow (1Gbps) Ethernet ICs used in low-end systems, it's
unlikely this will cause any practical performance issues; on the other
hand, the card not working by default likely causes issues for many new
FreeBSD users who find their network port doesn't work and have no idea
why.

PR:		230807
MFC after:	1 week

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1185

(cherry picked from commit 05a95d19cb248203acdd4e069d3eedfe597c3b49)
2024-05-21 13:43:34 -06:00
Christos Margiolis
45feaa73c6 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)
2024-05-21 19:45:55 +02:00