* [PATCH] ipmi: add missing platform_device_put() on error in try_smi_init()
@ 2013-05-17 8:25 ` Wei Yongjun
0 siblings, 0 replies; 2+ messages in thread
From: Wei Yongjun @ 2013-05-17 8:25 UTC (permalink / raw)
To: minyard, grant.likely, rob.herring
Cc: yongjun_wei, openipmi-developer, devicetree-discuss, linux-kernel
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Add the missing platform_device_put() before return from
try_smi_init() in the platform_device_add() fail case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
drivers/char/ipmi/ipmi_si_intf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index af4b23f..3f6c390 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -3299,6 +3299,7 @@ static int try_smi_init(struct smi_info *new_smi)
"Unable to register system interface device:"
" %d\n",
rv);
+ platform_device_put(new_smi->pdev);
goto out_err;
}
new_smi->dev_registered = 1;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ipmi: add missing platform_device_put() on error in try_smi_init()
@ 2013-05-17 8:25 ` Wei Yongjun
0 siblings, 0 replies; 2+ messages in thread
From: Wei Yongjun @ 2013-05-17 8:25 UTC (permalink / raw)
To: minyard-HInyCGIudOg, grant.likely-QSEj5FYQhm4dnm+yROfE0A,
rob.herring-bsGFqQB8/DxBDgjK7y7TUQ
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY,
openipmi-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
Add the missing platform_device_put() before return from
try_smi_init() in the platform_device_add() fail case.
Signed-off-by: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
---
drivers/char/ipmi/ipmi_si_intf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index af4b23f..3f6c390 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -3299,6 +3299,7 @@ static int try_smi_init(struct smi_info *new_smi)
"Unable to register system interface device:"
" %d\n",
rv);
+ platform_device_put(new_smi->pdev);
goto out_err;
}
new_smi->dev_registered = 1;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-17 8:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-17 8:25 [PATCH] ipmi: add missing platform_device_put() on error in try_smi_init() Wei Yongjun
2013-05-17 8:25 ` Wei Yongjun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.