]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: slicoss: use status in isr
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 17 Sep 2015 16:44:35 +0000 (22:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Sep 2015 02:53:51 +0000 (19:53 -0700)
If we are not able to setup the LINK UP command then don't increment the
interrupt count.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index 6ff0b838db79607c85cdd1d62e16c6c66629fab0..2025b615a6c1cbdfe0b9833c55e9d82b1603521c 100644 (file)
@@ -2110,7 +2110,8 @@ static void slic_interrupt_card_up(u32 isr, struct adapter *adapter,
 
                if (isr & ISR_LEVENT) {
                        adapter->linkevent_interrupts++;
-                       slic_link_event_handler(adapter);
+                       if (slic_link_event_handler(adapter))
+                               adapter->linkevent_interrupts--;
                }
 
                if ((isr & ISR_UPC) || (isr & ISR_UPCERR) ||