diff options
| author | Malcolm Priestley <tvboxspy@gmail.com> | 2019-03-27 14:45:26 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-29 12:25:45 -0400 |
| commit | cc26358f89c3e493b54766b1ca56cfc6b14db78a (patch) | |
| tree | cdd8824605b4e7b6f735ab2ccbd2b57899bc262d | |
| parent | 33bac912840fe64dbc15556302537dc6a17cac63 (diff) | |
staging: vt6655: Remove vif check from vnt_interrupt
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 83f1a1cf9182..c6bb4aaf9bd0 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c | |||
| @@ -1137,8 +1137,7 @@ static irqreturn_t vnt_interrupt(int irq, void *arg) | |||
| 1137 | { | 1137 | { |
| 1138 | struct vnt_private *priv = arg; | 1138 | struct vnt_private *priv = arg; |
| 1139 | 1139 | ||
| 1140 | if (priv->vif) | 1140 | schedule_work(&priv->interrupt_work); |
| 1141 | schedule_work(&priv->interrupt_work); | ||
| 1142 | 1141 | ||
| 1143 | MACvIntDisable(priv->PortOffset); | 1142 | MACvIntDisable(priv->PortOffset); |
| 1144 | 1143 | ||
