X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fchar%2Fhvc_irq.c;h=2623e177e8d61d501fe1c39dd57d3768bfcad481;hb=ae02cde7e9bc7bb4cb48b1798479889f043ba2ae;hp=d09e5688d4497242d4bcc6dcad23abc1a4f96202;hpb=7b3b6e42032e94a6132a85642e95106f5346650e;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/char/hvc_irq.c b/drivers/char/hvc_irq.c index d09e5688d449..2623e177e8d6 100644 --- a/drivers/char/hvc_irq.c +++ b/drivers/char/hvc_irq.c @@ -37,7 +37,7 @@ int notifier_add_irq(struct hvc_struct *hp, int irq) void notifier_del_irq(struct hvc_struct *hp, int irq) { - if (!irq) + if (!hp->irq_requested) return; free_irq(irq, hp); hp->irq_requested = 0;