Received: by 10.192.165.156 with SMTP id m28csp680061imm; Mon, 16 Apr 2018 07:04:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx48yUK/JViEjKbBr33eclEp8kwXzkE+y9x5k/32cBu3lJikgayDbxvlpCL3n8LYOfCmdhkuX X-Received: by 2002:a17:902:3c5:: with SMTP id d63-v6mr13939587pld.163.1523887469351; Mon, 16 Apr 2018 07:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523887469; cv=none; d=google.com; s=arc-20160816; b=um8E+Z5DVN7k+LvCYdKrTMl3qDFze8S0hVCJXBVNH+es7cWrogF66+4usP9xRUHd5j sSlXsc3Ee5kKTaY8UzxFfDnNa+xV4J48W/8qCiuejnHUYHVooG55AinYWvLmh2atNQ2+ wBqO59pBbQ49D//tXrxb6FIHORu/c263eYGhUR2Pv4x6nwMOehbrNXklXiJr7pKg/9+R 1NnHSW1LY14/JRSiQ/lbBgcz2KLuJIZuMOqbujM70Hcfm5FrzZvfaM3PVBLJwQA1cM8y Zsu3tgQkuwXvAH+lPwph9axrDRrx4YBIfRHxurS2JBG+TzFOhItfC79K3Db1NUU6ufV6 ln+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=4X2r5hy3x8yYWcO2C77OeG3t2FoQpNjQPDSWj2LpiRU=; b=N073Dgef1FAA6UnB6zCtUp3ACvlhR+xXB4BTjQ++xfvTdGhsH9YYZ5n7vd5H6tdBev V4zjXeREdT46utDbqA00LYfu8QZNoTjn41p9yo31hbt9r0NaOHNW22+2NtodLo6nHWqe 1p6GZCfG5L54lrcFPWO6iHVKnzv/eeSzYpdGdozgiQsgBKPoxhx2F9f+yd6FzblK9/J8 G515URSqUBKtZPyYmiPHQFYyTa0JbGiUgGFJSiTX+Czu57P8fWUXY4+t1FEirjxgt3/i dHGT6MMVeWy50A9TNZCoky4Ez/3oDVCSQcc/dXnqafZo/wuLTyf/DyHH4aHut2RQcVAM 7A8Q== 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 e9-v6si12043337pln.439.2018.04.16.07.04.13; Mon, 16 Apr 2018 07:04:29 -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 S1755422AbeDPOCN (ORCPT + 99 others); Mon, 16 Apr 2018 10:02:13 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:41508 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754990AbeDPOCL (ORCPT ); Mon, 16 Apr 2018 10:02:11 -0400 Received: from localhost (pool-173-77-163-229.nycmny.fios.verizon.net [173.77.163.229]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 2266F1088446A; Mon, 16 Apr 2018 07:02:11 -0700 (PDT) Date: Mon, 16 Apr 2018 10:02:10 -0400 (EDT) Message-Id: <20180416.100210.796567683447229503.davem@davemloft.net> To: dan.carpenter@oracle.com Cc: labbott@redhat.com, sd@queasysnail.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net] Revert "macsec: missing dev_put() on error in macsec_newlink()" From: David Miller In-Reply-To: <20180416101750.GA19613@mwanda> References: <20180414223121.GA7475@bistromath.localdomain> <20180416101750.GA19613@mwanda> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 16 Apr 2018 07:02:11 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter Date: Mon, 16 Apr 2018 13:17:50 +0300 > This patch is just wrong, sorry. I was trying to fix a static checker > warning and misread the code. The reference taken in macsec_newlink() > is released in macsec_free_netdev() when the netdevice is destroyed. > > This reverts commit 5dcd8400884cc4a043a6d4617e042489e5d566a9. > > Reported-by: Laura Abbott > Fixes: 5dcd8400884c ("macsec: missing dev_put() on error in macsec_newlink()") > Signed-off-by: Dan Carpenter > Acked-by: Sabrina Dubroca > --- > I sent this earlier but I messed up the CC list. I've updated the > commit message as well. Applied, thanks Dan.