Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755264AbZLBROs (ORCPT ); Wed, 2 Dec 2009 12:14:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755190AbZLBROs (ORCPT ); Wed, 2 Dec 2009 12:14:48 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:51588 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755187AbZLBROr (ORCPT ); Wed, 2 Dec 2009 12:14:47 -0500 Date: Wed, 2 Dec 2009 18:14:22 +0100 From: Ingo Molnar To: "H. Peter Anvin" Cc: Xiaotian Feng , x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Yinghai Lu Subject: Re: [PATCH -tip] x86: reboot_fixup_32.c add missing pci_dev_put Message-ID: <20091202171422.GB28061@elte.hu> References: <1259291762-17735-1-git-send-email-dfeng@redhat.com> <20091202100928.GE22654@elte.hu> <4B169B1B.8010007@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B169B1B.8010007@zytor.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: 0.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=0.0 required=5.9 tests=none autolearn=no SpamAssassin version=3.2.5 _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 35 * H. Peter Anvin wrote: > On 12/02/2009 02:09 AM, Ingo Molnar wrote: > > > > * Xiaotian Feng wrote: > > > >> pci_get_device increments reference count to the found pci device, > >> that should be decremented using pci_dev_put. > > > >> +++ b/arch/x86/kernel/reboot_fixups_32.c > >> @@ -80,6 +80,7 @@ void mach_reboot_fixups(void) > >> continue; > >> > >> cur->reboot_fixup(dev); > >> + pci_dev_put(dev); > > > > Does this matter in practice? We are about to reboot. (but if it's > > cleaner to do it like this or if there's some real bug fixed by this > > then please spell it out in the changelog.) > > > > Even if it doesn't actually matter, doing things cleanly makes it > easier to handle failure scenarios, possibly that are discovered in > the future. certainly - but it would be nice to know whether there's any other reason for this but cleanliness/consistency. Ingo -- 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/