From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 1C5022C00A9 for ; Thu, 16 May 2013 09:47:10 +1000 (EST) Received: by mail-pa0-f52.google.com with SMTP id bg2so1953204pad.39 for ; Wed, 15 May 2013 16:47:07 -0700 (PDT) Message-ID: <51941E71.8010309@gmail.com> Date: Thu, 16 May 2013 07:46:57 +0800 From: Liu Jiang MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: Re: [PATCH v2, part 1 3/9] PCI: Convert alloc_pci_dev(void) to pci_alloc_dev(bus) instead References: <1368461313-4371-1-git-send-email-jiang.liu@huawei.com> <1368461313-4371-4-git-send-email-jiang.liu@huawei.com> <5191F53E.4000305@cn.fujitsu.com> <51925136.5050302@gmail.com> <51926CF6.1050706@gmail.com> <51939E16.9090105@gmail.com> <51939FB1.20203@gmail.com> <1368653371.9603.18.camel@pasglop> In-Reply-To: <1368653371.9603.18.camel@pasglop> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: Neela Syam Kolli , "sparclinux@vger.kernel.org" , Toshi Kani , Linux-Scsi , Myron Stowe , David Airlie , Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, Linux Kernel Mailing List , "James E.J. Bottomley" , "Rafael J . Wysocki" , Bjorn Helgaas , Yijing Wang , Paul Mackerras , "linux-pci@vger.kernel.org" , Gu Zheng , Andrew Morton , Yinghai Lu , "David S. Miller" , Jiang Liu List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu 16 May 2013 05:29:31 AM CST, Benjamin Herrenschmidt wrote: > On Wed, 2013-05-15 at 22:46 +0800, Liu Jiang wrote: >> I don't know any OF exports, could you please help to CC >> some OF experts? > > I wrote that code I think. Sorry, I've missed the beginning of the > thread, what is the problem ? > > Cheers, > Ben. > > Hi, Just found a little memory leak issue that we should call pci_release_of_node() on error recovery path in function pci_scan_device(). pci_set_of_node(dev); if (pci_setup_device(dev)) { kfree(dev); return NULL; } Regards! Gerry