aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/slicoss
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-17 22:14:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-18 19:53:51 -0700
commitcbdc251d1153087f98b4e84f7d7d54357752b9d7 (patch)
tree07abc671cbfe0139527d61285c106464acbe30b3 /drivers/staging/slicoss
parentstaging: slicoss: use status in slic_ioctl (diff)
downloadlinux-dev-cbdc251d1153087f98b4e84f7d7d54357752b9d7.tar.xz
linux-dev-cbdc251d1153087f98b4e84f7d7d54357752b9d7.zip
staging: slicoss: use status in isr
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>
Diffstat (limited to 'drivers/staging/slicoss')
-rw-r--r--drivers/staging/slicoss/slicoss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
index 6ff0b838db79..2025b615a6c1 100644
--- a/drivers/staging/slicoss/slicoss.c
+++ b/drivers/staging/slicoss/slicoss.c
@@ -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) ||