NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/46118
The following reply was made to PR kern/46118; it has been noted by GNATS.
From: Holger =?iso-8859-1?Q?Wei=DF?= <holger%weiss.in-berlin.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/46118
Date: Wed, 21 Mar 2012 17:04:39 +0100
FWIW, the following patch makes the panic go away for me, but I have no
idea whether it's correct (i.e., I don't know where in the call chain
the locking should be handled):
Index: sys/dev/usb/if_axe.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/if_axe.c,v
retrieving revision 1.51
diff -u -r1.51 if_axe.c
--- sys/dev/usb/if_axe.c 2 Feb 2012 19:43:07 -0000 1.51
+++ sys/dev/usb/if_axe.c 21 Mar 2012 07:55:10 -0000
@@ -1134,7 +1134,9 @@
axe_txeof);
/* Transmit */
+ KERNEL_LOCK(1, curlwp);
err = usbd_transfer(c->axe_xfer);
+ KERNEL_UNLOCK_ONE(curlwp);
if (err != USBD_IN_PROGRESS) {
axe_stop(ifp, 0);
return EIO;
Home |
Main Index |
Thread Index |
Old Index