Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755964AbYHGAEg (ORCPT ); Wed, 6 Aug 2008 20:04:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752698AbYHFXZa (ORCPT ); Wed, 6 Aug 2008 19:25:30 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:38741 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752951AbYHFXZ1 (ORCPT ); Wed, 6 Aug 2008 19:25:27 -0400 Date: Thu, 7 Aug 2008 09:25:24 +1000 From: Simon Horman To: Matthew Wilcox Cc: Sven Wegener , Michael Ellerman , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Jesse Barnes Subject: Re: [patch] PCI: check the return value of device_create_bin_file() in pci_create_bus() Message-ID: <20080806232523.GF10636@verge.net.au> References: <1217932416.7758.4.camel@localhost> <20080805101605.GA19382@verge.net.au> <20080805110006.GA13409@verge.net.au> <20080805111406.GA13899@verge.net.au> <20080805112814.GO26461@parisc-linux.org> <20080805121531.GA29763@verge.net.au> <20080805122639.GP26461@parisc-linux.org> <20080806005718.GE32143@verge.net.au> <20080806131900.GI2055@parisc-linux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080806131900.GI2055@parisc-linux.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 830 Lines: 25 On Wed, Aug 06, 2008 at 07:19:01AM -0600, Matthew Wilcox wrote: > On Wed, Aug 06, 2008 at 10:57:21AM +1000, Simon Horman wrote: > > Check the return value of device_create_bin_file in pci_create_bus and > > unwind if necessary. Don't propagate error to caller, as failure to create > > these files shouldn't prevent PCI from being initialised. > > Much better ... one nit though: > > > static void pci_create_legacy_files(struct pci_bus *b) > > { > [...] > > + > > + return 0; > > I'm sure the compiler warns about that. Amusingly, yes. -- Horms -> looks for somewhere to hide -- 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/