Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162246AbWKPCpz (ORCPT ); Wed, 15 Nov 2006 21:45:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1162248AbWKPCp3 (ORCPT ); Wed, 15 Nov 2006 21:45:29 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:46991 "EHLO sous-sol.org") by vger.kernel.org with ESMTP id S1162243AbWKPCpM (ORCPT ); Wed, 15 Nov 2006 21:45:12 -0500 Message-Id: <20061116024602.250030000@sous-sol.org> References: <20061116024332.124753000@sous-sol.org> User-Agent: quilt/0.45-1 Date: Wed, 15 Nov 2006 18:43:43 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org, maks@sternwelten.at Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, Oliver Neukum , Greg Kroah-Hartman Subject: [patch 11/30] USB: failure in usblps error path Content-Disposition: inline; filename=usb-failure-in-usblp-s-error-path.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 36 -stable review patch. If anyone has any objections, please let us know. ------------------ From: Oliver Neukum if urb submission fails due to a transient error here eg. ENOMEM , the driver is dead. This fixes it. Regards Oliver Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman Signed-off-by: Chris Wright --- drivers/usb/class/usblp.c | 1 + 1 file changed, 1 insertion(+) --- linux-2.6.18.2.orig/drivers/usb/class/usblp.c +++ linux-2.6.18.2/drivers/usb/class/usblp.c @@ -701,6 +701,7 @@ static ssize_t usblp_write(struct file * usblp->wcomplete = 0; err = usb_submit_urb(usblp->writeurb, GFP_KERNEL); if (err) { + usblp->wcomplete = 1; if (err != -ENOMEM) count = -EIO; else -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/