mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
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>
This commit is contained in:
parent
a8d6aa08dd
commit
47dabaeedb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user