diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-10-19 14:28:24 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-29 00:30:31 +0200 |
commit | 47dabaeedb4d6e841ac4d66ef249ce9c61303049 (patch) | |
tree | 0a64e079b413ffe611b46cc07dbc9f01d396a94d /drivers/mfd/ezx-pcap.c | |
parent | mfd: Fix off-by-one value range checking for tps6507x (diff) | |
download | linux-47dabaeedb4d6e841ac4d66ef249ce9c61303049.tar.xz linux-47dabaeedb4d6e841ac4d66ef249ce9c61303049.zip |
mfd: Fix ezx_pcap_probe error path
return -ENOMEM if create_singlethread_workqueue failed.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/mfd/ezx-pcap.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |