[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120918235438.GA13373@srcf.ucam.org>
Date: Wed, 19 Sep 2012 00:54:38 +0100
From: Matthew Garrett <mjg@...hat.com>
To: Yinghai Lu <yinghai@...nel.org>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, x86@...nel.org,
Dave Airlie <airlied@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Julia Lawall <julia@...u.dk>
Subject: Re: [PATCH] PCI: fix default vga ref_count
On Tue, Sep 18, 2012 at 04:44:42PM -0700, Yinghai Lu wrote:
> void vga_set_default_device(struct pci_dev *pdev)
> {
> + if (vga_default)
> + pci_dev_put(vga_default);
> +
> + if (pdev)
> + pdev = pci_dev_get(pdev);
> +
> vga_default = pdev;
It shouldn't happen, but do we want to check for the vga_default == pdev
case?
--
Matthew Garrett | mjg59@...f.ucam.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists