Subject: [merged] eisa-call-put_device-if-device_register-fails.patch removed from -mm tree To: levex@xxxxxxxxx,bhelgaas@xxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Thu, 19 Dec 2013 11:54:13 -0800 The patch titled Subject: drivers/eisa/eisa-bus.c: call put_device if device_register fails has been removed from the -mm tree. Its filename was eisa-call-put_device-if-device_register-fails.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Levente Kurusa <levex@xxxxxxxxx> Subject: drivers/eisa/eisa-bus.c: call put_device if device_register fails We need to give up the last reference to edev->dev, so we need to call put_device(). Signed-off-by: Levente Kurusa <levex@xxxxxxxxx> Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/eisa/eisa-bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/eisa/eisa-bus.c~eisa-call-put_device-if-device_register-fails drivers/eisa/eisa-bus.c --- a/drivers/eisa/eisa-bus.c~eisa-call-put_device-if-device_register-fails +++ a/drivers/eisa/eisa-bus.c @@ -232,8 +232,10 @@ static int __init eisa_init_device(struc static int __init eisa_register_device(struct eisa_device *edev) { int rc = device_register(&edev->dev); - if (rc) + if (rc) { + put_device(&edev->dev); return rc; + } rc = device_create_file(&edev->dev, &dev_attr_signature); if (rc) _ Patches currently in -mm which might be from levex@xxxxxxxxx are kstrtox-remove-redundant-cleanup.patch lib-cmdlinec-declare-exported-symbols-immediately.patch linux-next.patch w1-call-put_device-if-device_register-fails.patch backlight-lcd-call-put_device-if-device_register-fails.patch net-phy-call-put_device-on-device_register-failure.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html