summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2019-03-27 18:45:26 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 06:26:25 +0200
commitb9ddff2a41cd6247464dd86d3b9c4e02f916006d (patch)
tree726886fc9febadedcee0a57189512c41627175e9
parent86092f2d5ccba5ea3ec98b17225b98dbfce225d6 (diff)
downloadlinux-rpi3-b9ddff2a41cd6247464dd86d3b9c4e02f916006d.tar.gz
linux-rpi3-b9ddff2a41cd6247464dd86d3b9c4e02f916006d.tar.bz2
linux-rpi3-b9ddff2a41cd6247464dd86d3b9c4e02f916006d.zip
staging: vt6655: Remove vif check from vnt_interrupt
commit cc26358f89c3e493b54766b1ca56cfc6b14db78a upstream. A check for vif is made in vnt_interrupt_work. There is a small chance of leaving interrupt disabled while vif is NULL and the work hasn't been scheduled. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> CC: stable@vger.kernel.org # v4.2+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6655/device_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 1ab0e8562d40..e49aeecb3adf 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -1146,8 +1146,7 @@ static irqreturn_t vnt_interrupt(int irq, void *arg)
{
struct vnt_private *priv = arg;
- if (priv->vif)
- schedule_work(&priv->interrupt_work);
+ schedule_work(&priv->interrupt_work);
return IRQ_HANDLED;
}