Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 2000 20:45:56 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Matt Bettinger <mattb@finsyn.com>
Cc:        stable@FreeBSD.ORG
Subject:   Re: Panic during disconnect of USB LPT device
Message-ID:  <20001121204556.A81426@walton.maths.tcd.ie>
In-Reply-To: <71F816A89AA9D3119F4C00D0B7094EFC2062FB@FIN_SYN>; from mattb@finsyn.com on Tue, Nov 21, 2000 at 07:53:01AM -0600
References:  <71F816A89AA9D3119F4C00D0B7094EFC2397B3@FIN_SYN> <71F816A89AA9D3119F4C00D0B7094EFC2062FB@FIN_SYN>

next in thread | previous in thread | raw e-mail | index | archive | help

[Machine crashing on printer disconnection]

A patch for something like this was recently applied to -current,
but it's not clear if it would fix the problem. You could try it
and see. Nick Hibma would probably merge the change if it helped.

	David.


Index: src/sys/dev/usb/ulpt.c
diff -c src/sys/dev/usb/ulpt.c:1.32 src/sys/dev/usb/ulpt.c:1.33
*** src/sys/dev/usb/ulpt.c:1.32	Tue Oct 10 13:41:46 2000
--- src/sys/dev/usb/ulpt.c	Tue Nov  7 10:50:34 2000
***************
*** 426,431 ****
--- 426,436 ----
  		if (error != EWOULDBLOCK) {
  			sc->sc_state = 0;
  			return (error);
+ 		}
+ 
+ 		if (sc->sc_dying) {
+ 			sc->sc_state = 0;
+ 			return (ENXIO);
  		}
  	}
  


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001121204556.A81426>