From d3a26d4c1b3ed60d0e0c38be6f9f21e75cc3f026 Mon Sep 17 00:00:00 2001 From: stsp Date: Tue, 30 Jan 2024 15:30:13 +0000 Subject: [PATCH] fix qwx_core_pdev_create() to not drop into its error path on success Otherwise we free rings that were just allocated, causing mbuf corruption. --- sys/dev/ic/qwx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index 74d4e8676aa..250a9673e20 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.10 2024/01/29 16:06:45 stsp Exp $ */ +/* $OpenBSD: qwx.c,v 1.11 2024/01/30 15:30:13 stsp Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -16249,9 +16249,9 @@ qwx_core_pdev_create(struct qwx_softc *sc) ath11k_err(ab, "failed to init spectral %d\n", ret); goto err_thermal_unregister; } - +#endif return 0; - +#if 0 err_thermal_unregister: ath11k_thermal_unregister(ab); err_mac_unregister: -- 2.20.1