linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: net: lmc: fix case value for target abort error
@ 2018-08-01 17:22 Colin King
  2018-08-02 21:42 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2018-08-01 17:22 UTC (permalink / raw)
  To: David S . Miller, Vasyl Gomonovych, netdev; +Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/net/wan/lmc/lmc_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c
index 093bd21f574d..4907453f17f5 100644
--- a/drivers/net/wan/lmc/lmc_main.c
+++ b/drivers/net/wan/lmc/lmc_main.c
@@ -1362,7 +1362,7 @@ static irqreturn_t lmc_interrupt (int irq, void *dev_instance) /*fold00*/
             case 0x001:
                 printk(KERN_WARNING "%s: Master Abort (naughty)\n", dev->name);
                 break;
-            case 0x010:
+            case 0x002:
                 printk(KERN_WARNING "%s: Target Abort (not so naughty)\n", dev->name);
                 break;
             default:
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drivers: net: lmc: fix case value for target abort error
  2018-08-01 17:22 [PATCH] drivers: net: lmc: fix case value for target abort error Colin King
@ 2018-08-02 21:42 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-08-02 21:42 UTC (permalink / raw)
  To: colin.king; +Cc: gomonovych, netdev, kernel-janitors, linux-kernel

From: Colin King <colin.king@canonical.com>
Date: Wed,  1 Aug 2018 18:22:41 +0100

> From: Colin Ian King <colin.king@canonical.com>
> 
> 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>

Applied, thanks Colin.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-02 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01 17:22 [PATCH] drivers: net: lmc: fix case value for target abort error Colin King
2018-08-02 21:42 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).