Skip to contentSkip to conversation

mfd: Fix ezx_pcap_probe error path

PATCH In review Axel Lin 2 participants 2 messages Oct 19, 2010 Multifunction devices (MFD)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 mfd: Fix ezx_pcap_probe error path

return -ENOMEM if create_singlethread_workqueue failed.

---
 drivers/mfd/ezx-pcap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/ezx-pcap.c +1 -0
index d283d77..c2b698d 100644
@@ -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;
 	}
Signature · 1 line
1.7.0.4
#1 lore raw

Hi Axel,

Quoted 1 line · Axel Lin

return -ENOMEM if create_singlethread_workqueue failed.

Thanks for the patch, applied to my for-next branch.

Cheers,
Samuel.

Quoted 22 lines
---
 drivers/mfd/ezx-pcap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/ezx-pcap.c +1 -0
index d283d77..c2b698d 100644
@@ -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;
 	}
Signature · 1 line
1.7.0.4
Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/