From owner-cvs-all Tue Oct 29 17:20:12 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A148037B401; Tue, 29 Oct 2002 17:20:11 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17F0343E4A; Tue, 29 Oct 2002 17:20:11 -0800 (PST) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9U1IwmV077433; Tue, 29 Oct 2002 17:18:58 -0800 (PST) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9U1Iwao077432; Tue, 29 Oct 2002 17:18:58 -0800 (PST) Message-Id: <200210300118.g9U1Iwao077432@repoman.freebsd.org> From: Ian Dowse Date: Tue, 29 Oct 2002 17:18:58 -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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2002/10/29 17:18:58 PST Modified files: sys/dev/usb ulpt.c Log: Check for errors and zero-length transfers in the ulpt_input() input pipe callback function, and just return if these cases are detected. Without these checks, the ulpt driver may cause an infinite loop of failing USB transfers that can hang the whole machine. This makes printing work for me on a HP DJ950C printer. Revision Changes Path 1.50 +6 -0 src/sys/dev/usb/ulpt.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message