From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from phoenix.infradead.org (unknown [213.86.99.234]) by dsl2.external.hp.com (Postfix) with ESMTP id EFB2E4845 for ; Sat, 27 Sep 2003 12:43:28 -0600 (MDT) Date: Sat, 27 Sep 2003 19:43:19 +0100 From: Christoph Hellwig To: Matthew Wilcox Cc: James Bottomley , Ryan Bradetich , SCSI Mailing List , PARISC list Message-ID: <20030927194319.A30759@infradead.org> References: <1064634188.641.27.camel@laptop.bradetich.net> <1064677551.2002.20.camel@mulgrave> <20030927183756.GT24824@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20030927183756.GT24824@parcelfarce.linux.theplanet.co.uk>; from willy@debian.org on Sat, Sep 27, 2003 at 07:37:56PM +0100 Subject: [parisc-linux] Re: zalon/ncr53c720 crashes K460 (parisc port) on bootup. Sender: parisc-linux-admin@lists.parisc-linux.org Errors-To: parisc-linux-admin@lists.parisc-linux.org List-Help: List-Post: List-Subscribe: , List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: On Sat, Sep 27, 2003 at 07:37:56PM +0100, Matthew Wilcox wrote: > - struct host_data *host_data = (struct host_data *)host->hostdata; > + struct host_data *host_data; > #ifdef DEBUG_NCR53C8XX > printk("ncr53c8xx: release\n"); > #endif > - if (host_data->ncb) > + if (!host) > + return 1; > + host_data = (struct host_data *)host->hostdata; > + if (host_data && host_data->ncb) > ncr_detach(host_data->ncb); > return 1; > } > > and it does fix the problem. Maybe it's too much checking, but I'm not > interested in tracking down bugs like this again ;-) Or better just stop calling ncr53c8xx_release if ncr_attach failed..