diff options
Diffstat (limited to 'drivers/net/can/mcp251x.c')
-rw-r--r-- | drivers/net/can/mcp251x.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/can/mcp251x.c b/drivers/net/can/mcp251x.c index c06e02382eca..fdea752f398f 100644 --- a/drivers/net/can/mcp251x.c +++ b/drivers/net/can/mcp251x.c | |||
@@ -816,10 +816,14 @@ static irqreturn_t mcp251x_can_ist(int irq, void *dev_id) | |||
816 | if (intf & CANINTF_ERRIF) { | 816 | if (intf & CANINTF_ERRIF) { |
817 | /* Handle overflow counters */ | 817 | /* Handle overflow counters */ |
818 | if (eflag & (EFLG_RX0OVR | EFLG_RX1OVR)) { | 818 | if (eflag & (EFLG_RX0OVR | EFLG_RX1OVR)) { |
819 | if (eflag & EFLG_RX0OVR) | 819 | if (eflag & EFLG_RX0OVR) { |
820 | net->stats.rx_over_errors++; | 820 | net->stats.rx_over_errors++; |
821 | if (eflag & EFLG_RX1OVR) | 821 | net->stats.rx_errors++; |
822 | } | ||
823 | if (eflag & EFLG_RX1OVR) { | ||
822 | net->stats.rx_over_errors++; | 824 | net->stats.rx_over_errors++; |
825 | net->stats.rx_errors++; | ||
826 | } | ||
823 | can_id |= CAN_ERR_CRTL; | 827 | can_id |= CAN_ERR_CRTL; |
824 | data1 |= CAN_ERR_CRTL_RX_OVERFLOW; | 828 | data1 |= CAN_ERR_CRTL_RX_OVERFLOW; |
825 | } | 829 | } |