[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/54762 CVS commit: [netbsd-9] src/sys/dev/usb
The following reply was made to PR kern/54762; it has been noted by GNATS.
From: "Martin Husemann" <martin%netbsd.org@localhost>
Subject: PR/54762 CVS commit: [netbsd-9] src/sys/dev/usb
Date: Tue, 17 Dec 2019 12:55:10 +0000
Module Name: src
Committed By: martin
Date: Tue Dec 17 12:55:10 UTC 2019
src/sys/dev/usb [netbsd-9]: usbnet.c
Pull up following revision(s) (requested by riastradh in ticket #565):
sys/dev/usb/usbnet.c: revision 1.31
sys/dev/usb/usbnet.c: revision 1.32
sys/dev/usb/usbnet.c: revision 1.33
Fix order of nulling un->un_pri->unp_ec.ec_mii.
Can't null it until after if_detach prevents further use.
While here, fix conditionals in usbnet_tick_task to use the unp_dying
flag, not the nullness of mii (or of ifp, which never null because
it's an embedded member).
Fix inequality for refcnt drain: -1 here means all refs gone.
Don't assume mii is not null here. Some drivers like urndis don't use
mii, so they always have mii == NULL.
ok riastradh. fixes PR kern/54762
To generate a diff of this commit:
cvs rdiff -u -r188.8.131.52 -r184.108.40.206 src/sys/dev/usb/usbnet.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Main Index |
Thread Index |