Skip to content

Commit afb41bb

Browse files
Colin Ian Kingdavem330
authored andcommitted
drivers: net: lmc: fix case value for target abort error
Current value for a target abort error is 0x010, however, this value should in fact be 0x002. As it stands, the range of error is 0..7 so it is currently never being detected. This bug has been in the driver since the early 2.6.12 days (or before). Detected by CoverityScan, CID#744290 ("Logically dead code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 258fe20 commit afb41bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/wan/lmc/lmc_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ static irqreturn_t lmc_interrupt (int irq, void *dev_instance) /*fold00*/
13621362
case 0x001:
13631363
printk(KERN_WARNING "%s: Master Abort (naughty)\n", dev->name);
13641364
break;
1365-
case 0x010:
1365+
case 0x002:
13661366
printk(KERN_WARNING "%s: Target Abort (not so naughty)\n", dev->name);
13671367
break;
13681368
default:

0 commit comments

Comments
 (0)