Re: [PATCH 2/4] eisa: call put_device if device_register fails

From: Levente Kurusa
Date: Fri Dec 13 2013 - 14:08:35 EST


On 12/13/2013 08:04 PM, Bjorn Helgaas wrote:
> On Fri, Dec 13, 2013 at 07:39:54PM +0100, Levente Kurusa wrote:
>> We need to give up the last reference to edev->dev, so
>> we need to call put_device().
>>
>> Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
>> Signed-off-by: Levente Kurusa <levex@xxxxxxxxx>
>
> I applied this and will push it through my PCI tree, since I don't think
> anybody really takes care of EISA these days.
>
> I looked at other callers of device_register(), and most of them look like
> they have the same problem. Can you fix the others, too? This patch says
> "2/4", so maybe you already are, but I can't find the other patches in the
> series.

Yes, the patchset didn't hit LKML due to me being a noob with git-send-email. :-(

I will fix them, just sent this to verify that I am doing it right. :-)

Thanks for applying!

--
Regards,
Levente Kurusa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/