]> Git Repo - linux.git/commitdiff
mfd: Fix ezx_pcap_probe error path
authorAxel Lin <[email protected]>
Tue, 19 Oct 2010 12:28:24 +0000 (20:28 +0800)
committerSamuel Ortiz <[email protected]>
Thu, 28 Oct 2010 22:30:31 +0000 (00:30 +0200)
return -ENOMEM if create_singlethread_workqueue failed.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
drivers/mfd/ezx-pcap.c

index d283d77937b9a8fed636100800c418e2f61c6f22..c2b698d69a93862937efa7efb4e1bf3d48c96f32 100644 (file)
@@ -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;
        }
This page took 0.052482 seconds and 4 git commands to generate.