Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2685714pxy; Mon, 3 May 2021 05:57:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPd8tEcZA7gM3Z2ms5avGy0SrdWMlqQjbxoM8Q6g8BpFM4b4hWnprfQYVOulMmZR4sr8xM X-Received: by 2002:a17:90a:4898:: with SMTP id b24mr9361681pjh.110.1620046637876; Mon, 03 May 2021 05:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620046637; cv=none; d=google.com; s=arc-20160816; b=P1vX2vrTX27p3TMSYGOl7HcO505JTwt4SeiCIJBFbrF5WczjiHZan2WEhAQjb4TebU q7iUTy17S3OYxzZPj9uQvmPMj59bjGVRxVAgs3Cv2Bu6xwAkXD2gZ8/DGq14gNbVdt8Y ljl4s+xUI3VbqtvSqU7X1qlQ5iogumXA2kq9c+iiLe9POGX++0QtnYg+2T531NmDB9pE 32Sz6P3N6SMfb2PyWroRaY2mzyhXHwTWyCDu51wIMOvqV6sxBgfO1cOUbnmm+PeJARj3 L6quhvRFCIYBHME25jP5vqtkHU3l50+gpXYc/7gvafCBdz4N8WSEIltQLgmq6P1Ozle5 zzXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=96zX/dHYviGs5GEF9YVinCrBvMZ68k+5XSH58+YWbDM=; b=u5eiY/UIsaZ40ja/kFnLX9O4Qeudo3P8v5CkVafIXFmgmLuIsOfTlF8KU6okKvvoiE cWc4AWEH+BdaeABzcrKpepF8DatkNBDmszsn7vK/Z2bd9vqnVuu/jg0OkwXRlannaGS1 cmgqpxuzkySPOcmGBjIiRZ67VmbIIYCi15O0QdryykO0PinrTWdjTIZqci6gh2++HtRw 8G4xOsnjVNwv1Dxh+WWc68LABC5a85LmbMQuPE/YjMXiy1aRcLFJsfnbzNcYKRT2Azh6 C02BZSL+203Av4QEfQt/rW6mig+NEoSbFLh40Q9v3v9LI3KXfr75etnDTUwSs0KU+mFF LyUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1kEgk2sp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si15087738pgk.293.2021.05.03.05.57.03; Mon, 03 May 2021 05:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1kEgk2sp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233205AbhECMAK (ORCPT + 99 others); Mon, 3 May 2021 08:00:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:34006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233516AbhECMAB (ORCPT ); Mon, 3 May 2021 08:00:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C76F61185; Mon, 3 May 2021 11:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043147; bh=HTH8Loe9bGNFvHLAWRqr4mqbB+7rSi+n4KOQ3IvjTkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1kEgk2sp1LeFLC2EANg7njqObCC223Z0CfyzI+N7Wl8uxaUwLVA45chhDLNQeY3th 1uonBOC7piDNArM9HZu5npGrQscD/+hhT5pdYYZkYZ9AMz9UxDvTtm0xvPBKr0iwQq jtPHwdcNlPCMM92TpS9Ir7omeBN/h2xjo6HdpYbE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Ursula Braun , "David S . Miller" Subject: [PATCH 16/69] Revert "net/smc: fix a NULL pointer dereference" Date: Mon, 3 May 2021 13:56:43 +0200 Message-Id: <20210503115736.2104747-17-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit e183d4e414b64711baf7a04e214b61969ca08dfa. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original commit causes a memory leak and does not properly fix the issue it claims to fix. I will send a follow-on patch to resolve this properly. Cc: Kangjie Lu Cc: Ursula Braun Cc: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/smc/smc_ism.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c index 9c6e95882553..6558cf7643a7 100644 --- a/net/smc/smc_ism.c +++ b/net/smc/smc_ism.c @@ -417,11 +417,6 @@ struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name, init_waitqueue_head(&smcd->lgrs_deleted); smcd->event_wq = alloc_ordered_workqueue("ism_evt_wq-%s)", WQ_MEM_RECLAIM, name); - if (!smcd->event_wq) { - kfree(smcd->conn); - kfree(smcd); - return NULL; - } return smcd; } EXPORT_SYMBOL_GPL(smcd_alloc_dev); -- 2.31.1