aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/rmi4/rmi_driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
index 4f2bb5947a4e..141ea228aac6 100644
--- a/drivers/input/rmi4/rmi_driver.c
+++ b/drivers/input/rmi4/rmi_driver.c
@@ -230,8 +230,10 @@ static irqreturn_t rmi_irq_fn(int irq, void *dev_id)
230 rmi_dbg(RMI_DEBUG_CORE, &rmi_dev->dev, 230 rmi_dbg(RMI_DEBUG_CORE, &rmi_dev->dev,
231 "Failed to process interrupt request: %d\n", ret); 231 "Failed to process interrupt request: %d\n", ret);
232 232
233 if (count) 233 if (count) {
234 kfree(attn_data.data); 234 kfree(attn_data.data);
235 attn_data.data = NULL;
236 }
235 237
236 if (!kfifo_is_empty(&drvdata->attn_fifo)) 238 if (!kfifo_is_empty(&drvdata->attn_fifo))
237 return rmi_irq_fn(irq, dev_id); 239 return rmi_irq_fn(irq, dev_id);