From owner-freebsd-current@FreeBSD.ORG Sun Mar 22 12:55:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47A9010656BC for ; Sun, 22 Mar 2009 12:55:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id CE94E8FC08 for ; Sun, 22 Mar 2009 12:55:39 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=djDbEolmZ0EA:10 a=weFJKH8iETMA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=3oc9M9_CAAAA:8 a=3Zc74pW6NOn_oxQ6vFQA:9 a=sKPWZKmxhxj1O-1Y9I0A:7 a=8aP90OyOG-WLnxYw04dOn1YyeSYA:4 a=LY0hPdMaydYA:10 a=U8Ie8EnqySEA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1111294253; Sun, 22 Mar 2009 13:55:38 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sun, 22 Mar 2009 13:58:07 +0100 User-Agent: KMail/1.9.7 References: <8CB78F29832919B-1574-3D1E@WEBMAIL-MY24.sysops.aol.com> In-Reply-To: <8CB78F29832919B-1574-3D1E@WEBMAIL-MY24.sysops.aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903221358.08655.hselasky@c2i.net> Cc: debardeleben@aol.com, freebsd@cfdhome.com Subject: Re: Suggested fix for USB printer (ulpt.c) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 12:55:40 -0000 On Sunday 22 March 2009, debardeleben@aol.com wrote: > I finally got fed up enough with not being able to print with -CURRENT, > and found a fix that make ulpt work for me with my epson stylus photo 835. > > I am using cups, and I have always needed to use the non-reset device, > even with the old USB stack. Hopefully a committer can pick this up and > include an appropriate version of this fix to the source tree. In the mean > time, if you are having trouble with a usb printer with -CURRENT, you > may want to try this patch. Hi, The memory allocated by malloc() when M_ZERO is passed should be all zero, so the patch you are suggesting is redundant. See "device_set_driver()": dev->softc = malloc(driver->size, M_BUS_SC, M_NOWAIT | M_ZERO); So there must be a problem with malloc then, or someone that is using freed memory! Try compiling a kernel with the INVARIANTS kernel options and perhaps some malloc debugging. --HPS