The branch stable/14 has been updated by zlei:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5c20fc180d1d3e8a25260832c2e5dab0630178ab

commit 5c20fc180d1d3e8a25260832c2e5dab0630178ab
Author:     Zhenlei Huang <[email protected]>
AuthorDate: 2024-06-05 12:03:27 +0000
Commit:     Zhenlei Huang <[email protected]>
CommitDate: 2024-06-08 03:28:54 +0000

    hidbus(4): Fix wrong assertion of bus
    
    Reviewed by:    wulf
    Fixes:          4151ac9f1292 hidbus(4): Use generic hid methods to ...
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D45496
    
    (cherry picked from commit 4eb82e65a73f6cd180700bb8ae47227a553f94ed)
---
 sys/dev/hid/hidbus.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/hid/hidbus.c b/sys/dev/hid/hidbus.c
index cddc6c961195..fd73136c289f 100644
--- a/sys/dev/hid/hidbus.c
+++ b/sys/dev/hid/hidbus.c
@@ -605,7 +605,7 @@ hidbus_set_intr(device_t child, hid_intr_t *handler, void 
*context)
 static int
 hidbus_intr_start(device_t bus, device_t child)
 {
-       MPASS(bus = device_get_parent(child));
+       MPASS(bus == device_get_parent(child));
        struct hidbus_softc *sc = device_get_softc(bus);
        struct hidbus_ivars *ivar = device_get_ivars(child);
        struct hidbus_ivars *tlc;
@@ -631,7 +631,7 @@ hidbus_intr_start(device_t bus, device_t child)
 static int
 hidbus_intr_stop(device_t bus, device_t child)
 {
-       MPASS(bus = device_get_parent(child));
+       MPASS(bus == device_get_parent(child));
        struct hidbus_softc *sc = device_get_softc(bus);
        struct hidbus_ivars *ivar = device_get_ivars(child);
        struct hidbus_ivars *tlc;

Reply via email to