Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1831106imm; Mon, 3 Sep 2018 10:32:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYS98GL1untRcAmVG8CtAproOds+q5D4SWCfZZ1M2v01amjQcDK6R31fsQIDsGx/ADUrWYb X-Received: by 2002:a17:902:9687:: with SMTP id n7-v6mr29516740plp.33.1535995976720; Mon, 03 Sep 2018 10:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995976; cv=none; d=google.com; s=arc-20160816; b=f3KsezLUMvDQAscaKfXQszicdGVaxoX/ydPaCOHvxEQrBXH1x0cKpj/BThbnM8HC6n iZWqBthNK00fMMsUmXjCLnOI8w0IScEQeNdI/kdkScfKmu5cBlLNV9aNmhReX87uNg+B 2T393nC6ngP2WBPy3GzINCya/0mcN4Ct9Q5sNhp6qBAoie2UGvGq6MosU168JoVT6WH9 on0ECNCTdJ47C1lWDdjzuAq/R/cIDJPjpHfNehOGAQ7nOeC8NEBxVHQxP/m4KIj5tZeL MNGXdyKwe8hsdeE9VUmc9br7aUUZRISzlAXZ8l/5Fj+TTF6KePue2RB7vWgYPjoZ5DyP rhvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=d2GkgNkd0zxB7eW75F0Wr0u3WHvloP34/rp4KRseONc=; b=csvow7xJmJ1a2ECqtwXbr+W+awkjq8znFlgwx4zdeuTBG0pWGjp5L1z8ELPXkk61Nw DXgIt6kHtgY0uK1pw+w87L/jCUHZQytk27fIa9td3w4XJ3vR6O3Xww06Cgu10d8Uv1fI 66GXv44bCLf2aUBu3D1t8WCkDMp8xhEfuZGzvDvtvFZf75VZNls0sMJaqk5RR7E0UW3k iHflLoHrXG/6Rv4pcNg5jC/ESyuDX7v4AEtYKvM/tn5pKCPGkrLoX4OTswZHI28EPTwp Z2QR12FfVqvOZCzYegqzX25dHP0660xIoOtlopAWStZaAcDif19h4Y5PAboJvUVtSGK1 cXxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24-v6si406461pls.497.2018.09.03.10.32.41; Mon, 03 Sep 2018 10:32:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730947AbeICVsR (ORCPT + 99 others); Mon, 3 Sep 2018 17:48:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46024 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730917AbeICVsQ (ORCPT ); Mon, 3 Sep 2018 17:48:16 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A4A31D14; Mon, 3 Sep 2018 17:19:16 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 075/165] drivers: net: lmc: fix case value for target abort error Date: Mon, 3 Sep 2018 18:56:01 +0200 Message-Id: <20180903165658.855687152@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Colin Ian King [ Upstream commit afb41bb039656f0cecb54eeb8b2e2088201295f5 ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wan/lmc/lmc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wan/lmc/lmc_main.c +++ b/drivers/net/wan/lmc/lmc_main.c @@ -1371,7 +1371,7 @@ static irqreturn_t lmc_interrupt (int ir 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: