Message ID | 1460147847-6963-1-git-send-email-ddaney.cavm@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4C1EC9F659 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Apr 2016 20:39:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6683E20109 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Apr 2016 20:39:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DF90202BE for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Apr 2016 20:39:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aodAD-0000Tv-3g; Fri, 08 Apr 2016 20:37:57 +0000 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aodAA-0000R7-OG for linux-arm-kernel@lists.infradead.org; Fri, 08 Apr 2016 20:37:55 +0000 Received: by mail-pa0-x241.google.com with SMTP id zy2so9714840pac.2 for <linux-arm-kernel@lists.infradead.org>; Fri, 08 Apr 2016 13:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Ek6tOoHGnCrFf3wrL2Lj/+bFHWhJTorvo52I/Dl/tNc=; b=oK1IfOzrsvbjGeeEQcqcpVLoKrXI3GOlaiWoySW+Jjs1RRwj92DyH0Xoy15zKE3CWJ iRIqMasFYwyXNvvDvHoapBUy0Ey00A7cbJIqnd2O/yFLBRqbomB1GhX6GbdRuKEVhslw 5wS5PiRZbBYPciee/sVRdwdZw+8W7spqstPHZYKSpzzRJZSDBmmpr1yBPOOOi667bj3S J95nRRCXrMZQOp8Uge5lWlJFRa3DOwX2LYnigT3e9fJkvrAKtggX/F1pUlApxOnYOaId j+74bnAl2pNUcRpSsOwWjxcZ+HZgw2cHC1iaY+245Sa4XsGiysOZkBsjunYwecJCudnl Jl0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ek6tOoHGnCrFf3wrL2Lj/+bFHWhJTorvo52I/Dl/tNc=; b=em0Xo13MnLLwk3LAVsePhVkwYjZM5r+y+KWogr7xRTDgXaEsvqOHzwtq3o8LvKHniM BWL/5EogARqEZyoDidOtKJztEQDBltlY+QCWQvj2VISiVoPDhmUdcEjsnwRWof7UPHvk SGk8F3HkffU4mZHc4pK0aSWgo82uTUFJDYUcGbwLaBo9p1wv5ky8meISe3acNVDAqeW+ pU6jigMUsnhtR+z+RpFyX7+xMYDK5LXdYj+6jAY1mzaC/lbEKnR/krmZzldcRkXHGIWv TJ9YQWg9KQFBqDMI3EMBQB1uUv0/YCP8IwSLLZGla8BQlOivIYHkLZSe1GrjVYf+qR/b NGog== X-Gm-Message-State: AD7BkJIapfJAnkC+rommUeHOQXmxAIyWEq073v8kO+gRmnGDik+UQodn9zZydqDjN5+wOQ== X-Received: by 10.66.132.103 with SMTP id ot7mr15316645pab.27.1460147853106; Fri, 08 Apr 2016 13:37:33 -0700 (PDT) Received: from dl.caveonetworks.com ([64.2.3.194]) by smtp.gmail.com with ESMTPSA id u2sm20600728pfi.26.2016.04.08.13.37.31 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Apr 2016 13:37:31 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id u38KbU1c006996; Fri, 8 Apr 2016 13:37:30 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u38KbUqS006995; Fri, 8 Apr 2016 13:37:30 -0700 From: David Daney <ddaney.cavm@gmail.com> To: "David S. Miller" <davem@davemloft.net>, netdev@vger.kernel.org Subject: [PATCH] net: thunderx: Fix broken of_node_put() code. Date: Fri, 8 Apr 2016 13:37:27 -0700 Message-Id: <1460147847-6963-1-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160408_133754_837251_E9214AC2 X-CRM114-Status: GOOD ( 13.37 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Sunil Goutham <sgoutham@cavium.com>, Robert Richter <rric@kernel.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, David Daney <david.daney@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c index 9679515..d20539a 100644 --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c @@ -1011,10 +1011,11 @@ static int bgx_init_of_phy(struct bgx *bgx) } lmac++; - if (lmac == MAX_LMAC_PER_BGX) + if (lmac == MAX_LMAC_PER_BGX) { + of_node_put(node); break; + } } - of_node_put(node); return 0; defer: