* [PATCH -next] mmc: dw_mmc: fix error return code in dw_mci_probe()
@ 2013-04-19 1:25 Wei Yongjun
2013-04-23 9:59 ` Seungwon Jeon
0 siblings, 1 reply; 3+ messages in thread
From: Wei Yongjun @ 2013-04-19 1:25 UTC (permalink / raw)
To: tgih.jun, jh80.chung, cjb, grant.likely, rob.herring
Cc: yongjun_wei, linux-mmc, devicetree-discuss
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Fix to return -ENOMEM in alloc workqueue error case instead
of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
drivers/mmc/host/dw_mmc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index bc3a1bc..0652690 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2321,8 +2321,10 @@ int dw_mci_probe(struct dw_mci *host)
tasklet_init(&host->tasklet, dw_mci_tasklet_func, (unsigned long)host);
host->card_workqueue = alloc_workqueue("dw-mci-card",
WQ_MEM_RECLAIM | WQ_NON_REENTRANT, 1);
- if (!host->card_workqueue)
+ if (!host->card_workqueue) {
+ ret = -ENOMEM;
goto err_dmaunmap;
+ }
INIT_WORK(&host->card_work, dw_mci_work_routine_card);
ret = devm_request_irq(host->dev, host->irq, dw_mci_interrupt,
host->irq_flags, "dw-mci", host);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH -next] mmc: dw_mmc: fix error return code in dw_mci_probe()
2013-04-19 1:25 [PATCH -next] mmc: dw_mmc: fix error return code in dw_mci_probe() Wei Yongjun
@ 2013-04-23 9:59 ` Seungwon Jeon
2013-05-26 17:28 ` Chris Ball
0 siblings, 1 reply; 3+ messages in thread
From: Seungwon Jeon @ 2013-04-23 9:59 UTC (permalink / raw)
To: 'Wei Yongjun', jh80.chung, cjb, grant.likely, rob.herring
Cc: yongjun_wei, linux-mmc, devicetree-discuss
On Friday, April 19, 2013 , Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Fix to return -ENOMEM in alloc workqueue error case instead
> of 0, as done elsewhere in this function.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] mmc: dw_mmc: fix error return code in dw_mci_probe()
2013-04-23 9:59 ` Seungwon Jeon
@ 2013-05-26 17:28 ` Chris Ball
0 siblings, 0 replies; 3+ messages in thread
From: Chris Ball @ 2013-05-26 17:28 UTC (permalink / raw)
To: Seungwon Jeon
Cc: 'Wei Yongjun',
jh80.chung, grant.likely, rob.herring, yongjun_wei, linux-mmc,
devicetree-discuss
Hi,
On Tue, Apr 23 2013, Seungwon Jeon wrote:
> On Friday, April 19, 2013 , Wei Yongjun wrote:
>> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>>
>> Fix to return -ENOMEM in alloc workqueue error case instead
>> of 0, as done elsewhere in this function.
>>
>> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Thanks, pushed to mmc-next for 3.11.
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-26 17:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-19 1:25 [PATCH -next] mmc: dw_mmc: fix error return code in dw_mci_probe() Wei Yongjun
2013-04-23 9:59 ` Seungwon Jeon
2013-05-26 17:28 ` Chris Ball
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.