mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
mfd: fix pcap adc locking
Release the lock on error. Signed-off-by: Daniel Ribeiro <drwyrm@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
992bb253cd
commit
1c90ea2c7e
1 changed files with 3 additions and 1 deletions
|
@ -238,8 +238,10 @@ static irqreturn_t pcap_adc_irq(int irq, void *_pcap)
|
|||
mutex_lock(&pcap->adc_mutex);
|
||||
req = pcap->adc_queue[pcap->adc_head];
|
||||
|
||||
if (WARN(!req, KERN_WARNING "adc irq without pending request\n"))
|
||||
if (WARN(!req, KERN_WARNING "adc irq without pending request\n")) {
|
||||
mutex_unlock(&pcap->adc_mutex);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
/* read requested channels results */
|
||||
ezx_pcap_read(pcap, PCAP_REG_ADC, &tmp);
|
||||
|
|
Loading…
Reference in a new issue