From owner-freebsd-stable Tue Nov 21 12:46: 1 2000 Delivered-To: freebsd-stable@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 7B27237B4CF for ; Tue, 21 Nov 2000 12:45:58 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 Nov 2000 20:45:57 +0000 (GMT) Date: Tue, 21 Nov 2000 20:45:56 +0000 From: David Malone To: Matt Bettinger Cc: stable@FreeBSD.ORG Subject: Re: Panic during disconnect of USB LPT device Message-ID: <20001121204556.A81426@walton.maths.tcd.ie> References: <71F816A89AA9D3119F4C00D0B7094EFC2397B3@FIN_SYN> <71F816A89AA9D3119F4C00D0B7094EFC2062FB@FIN_SYN> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <71F816A89AA9D3119F4C00D0B7094EFC2062FB@FIN_SYN>; from mattb@finsyn.com on Tue, Nov 21, 2000 at 07:53:01AM -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [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