[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAErSpo6jXzbgZUDbbo74vW-aSUD8MgtK5iNieFGUk=fxho102A@mail.gmail.com>
Date: Wed, 25 Sep 2013 15:30:14 -0600
From: Bjorn Helgaas <bhelgaas@...gle.com>
To: Veaceslav Falico <vfalico@...hat.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
Neil Horman <nhorman@...driver.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH 1/3] msi: add forgotten pci_dev_put(pdev) to populate_msi_sysfs()
On Wed, Sep 25, 2013 at 3:08 PM, Bjorn Helgaas <bhelgaas@...gle.com> wrote:
> Also, I think it is incorrect that free_msi_irqs() does this:
>
> if (entry->kobj.parent) {
> kobject_del(&entry->kobj);
> kobject_put(&entry->kobj);
> }
>
> list_del(&entry->list);
> kfree(entry);
>
> I think the "kfree(entry)" should be in msi_kobj_release() instead.
Oh, I see you fixed this in patch 3/3. I hadn't read that far yet :)
Did you find these problems by inspection, or is there some easy way
to trigger bad behavior? Just wondering if this is some way I can
reproduce the problem.
Bjorn
--
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