From owner-cvs-all Tue Nov 7 2:50:38 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6E2B437B4D7; Tue, 7 Nov 2000 02:50:35 -0800 (PST) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA77624; Tue, 7 Nov 2000 02:50:35 -0800 (PST) (envelope-from n_hibma@FreeBSD.org) Message-Id: <200011071050.CAA77624@freefall.freebsd.org> From: Nick Hibma Date: Tue, 7 Nov 2000 02:50:35 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb ulpt.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG n_hibma 2000/11/07 02:50:35 PST Modified files: sys/dev/usb ulpt.c Log: Fix for powering off a HP DJ950C during printing. As stated by Ian: When the printer is turned off the pipe write will cause and error, which causes lpd to close the device and reopen it to clear the error. After a short while the device will disappear from the bus but lpd will have opened the ulpt0 port by then. ulpt_status will check for status without checking the sc->dying flag and panic the kernel when the device finally disappears from the bus. Submitted by: Ian Dowse Revision Changes Path 1.33 +6 -1 src/sys/dev/usb/ulpt.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message