From: Christoph Hellwig Subject: Re: [PATCH] SCSI osst: add error handling to module init, sysfs Date: Tue, 10 Oct 2006 10:36:48 +0100 Message-ID: <20061010093648.GI395@infradead.org> References: <20061004092304.GA14685@havoc.gtf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:4319 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S965140AbWJJJhX (ORCPT ); Tue, 10 Oct 2006 05:37:23 -0400 Content-Disposition: inline In-Reply-To: <20061004092304.GA14685@havoc.gtf.org> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Jeff Garzik Cc: linux-scsi@vger.kernel.org, Andrew Morton , LKML On Wed, Oct 04, 2006 at 05:23:04AM -0400, Jeff Garzik wrote: > > - check all sysfs-related return codes, and propagate them back to callers > > - properly unwind errors in osst_probe(), init_osst(). This fixes a > leak that occured if scsi driver registration failed, and fixes an > oops if sysfs creation returned an error. > > (unrelated) > - kzalloc() cleanup in new_tape_buf() > > Signed-off-by: Jeff Garzik Ok.