From 47dabaeedb4d6e841ac4d66ef249ce9c61303049 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 19 Oct 2010 20:28:24 +0800 Subject: mfd: Fix ezx_pcap_probe error path return -ENOMEM if create_singlethread_workqueue failed. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz --- drivers/mfd/ezx-pcap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/mfd') diff --git a/drivers/mfd/ezx-pcap.c b/drivers/mfd/ezx-pcap.c index d283d77937b9..c2b698d69a93 100644 --- a/drivers/mfd/ezx-pcap.c +++ b/drivers/mfd/ezx-pcap.c @@ -465,6 +465,7 @@ static int __devinit ezx_pcap_probe(struct spi_device *spi) pcap->irq_base = pdata->irq_base; pcap->workqueue = create_singlethread_workqueue("pcapd"); if (!pcap->workqueue) { + ret = -ENOMEM; dev_err(&spi->dev, "cant create pcap thread\n"); goto free_pcap; } -- cgit v1.2.3