summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-03-03 05:50:05 +0000
committerriastradh <riastradh@NetBSD.org>2022-03-03 05:50:05 +0000
commit080e79e90e25a278adf3d7abc194b718d8f8f164 (patch)
tree13e18ce853109258ee9d38dc06ad47e0f19dcad9 /sys/dev/usb
parent3b046e3248111c69c98deb803c41ee2d6f16bae4 (diff)
usbnet: Impart blame on whose ifnet is unlocked in uno_init.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usbnet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usbnet.c b/sys/dev/usb/usbnet.c
index a317a9ffcd4..230da768192 100644
--- a/sys/dev/usb/usbnet.c
+++ b/sys/dev/usb/usbnet.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usbnet.c,v 1.68 2022/03/03 05:49:58 riastradh Exp $ */
+/* $NetBSD: usbnet.c,v 1.69 2022/03/03 05:50:05 riastradh Exp $ */
/*
* Copyright (c) 2019 Matthew R. Green
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.68 2022/03/03 05:49:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.69 2022/03/03 05:50:05 riastradh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -181,7 +181,7 @@ uno_override_ioctl(struct usbnet *un, struct ifnet *ifp, u_long cmd, void *data)
static int
uno_init(struct usbnet *un, struct ifnet *ifp)
{
- KASSERT(IFNET_LOCKED(ifp));
+ KASSERTMSG(IFNET_LOCKED(ifp), "%s", ifp->if_xname);
return (*un->un_ops->uno_init)(ifp);
}