Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp504521pxy; Wed, 21 Apr 2021 08:06:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3SOWQUf/G5ZdNZSfQtGA0p6thhNprHl/qiaot7xhWCxTzOzN6w01NJvfbKweLB5gTU2RH X-Received: by 2002:a63:2206:: with SMTP id i6mr9539367pgi.265.1619017585341; Wed, 21 Apr 2021 08:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619017585; cv=none; d=google.com; s=arc-20160816; b=EFW1V0LQAk5up/HivzIwTokKH3nv4UN7r+B7P46+mPIP+5ATIQZyKH7eb4/VeD1+C3 FHECUZtxNHQPTm9OHx7/4H//bZnGvw8LI+xADWHJdFLehCmyU4CPDOSm1o4czJ1qCB12 U1O+dEwRNGfXvJ3CrGAZEykGyexr6EEnQhiRUXcs2ptHN4ii5qasuMd6pqCotDhUDRBo qs4AG0F7nJw+l/LPp5aS693QFcCIPfNuekgZB0Efr2h3QEmnUebrjRvP+u57QjFfqQyU VgxjYgdYffIRnKZuHeWSu+QO/foHyn+auCv92L25i451oMdH0NLkNSNvAvJzX+3qyqAE Gn4g== 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=ZAUzddHI1ns88rV+mgEyLbrN6yyhdvU++KuV7/nTM5s=; b=lXe3ELqpvzv6MVn13/9OucAV4fXSsvHzy77wv0GnJQ0LTgaJyMcAplNRGVY1tu7Zcm fJu9/SIDGyULWHwdfThPS4HYTpYTp43Gx1RYizqqkluJ7qThI2rjNp07wqeyf71Bs0E2 rsmVpoz+6F+dO0kCAC809+1QwRDJ5aH6U6LjUv4trYxq7zksRdErXcvFf6mrOrvf5F3T /FgxeMrlFoO5lwWY3ogCUcyDYOx+yNYUo4MeeiCutgJEaVEtuEMIv6Y5crMjIqt6TW3w BHcjRU1ED8AlEscGim1S9Zd0UXYkFc6dJkCRnnl90BYU3giuQ1x3ta1t2WvXEWiRe+Wm XhZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=slRVLgsy; 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 v3si2651299plo.430.2021.04.21.08.06.10; Wed, 21 Apr 2021 08:06:25 -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=slRVLgsy; 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 S240682AbhDUNEh (ORCPT + 99 others); Wed, 21 Apr 2021 09:04:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:43708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240646AbhDUNEJ (ORCPT ); Wed, 21 Apr 2021 09:04:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EB4276144C; Wed, 21 Apr 2021 13:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010216; bh=safbXJMe4uxXLpovjnkp5EwbdjRLORiNMeJaarTVHhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=slRVLgsyp9m+UH450CIMxI/XwcDvodsbGexm8DQCXNJcIiXZaB5xYvYD8aspWM4cR 4bL4MiBp0P+iRklkdYDomh9E4fLmucc4BzSOU2uJUAjRAY/hLsl/Pffmy8m2W3n5AR 9C4ujDcCpUq/ynkPGL+sPxGYe+NFSzMmSVTLv2ok= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Chanwoo Choi , Stephen Boyd Subject: [PATCH 054/190] Revert "clk: samsung: Remove redundant check in samsung_cmu_register_one" Date: Wed, 21 Apr 2021 14:58:49 +0200 Message-Id: <20210421130105.1226686-55-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-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 8d7a577d04e8ce24b1b81ee44ec8cd1dda2a9cd9. Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota). Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase. Cc: Aditya Pakki Cc: https Cc: Chanwoo Choi Cc: Stephen Boyd Signed-off-by: Greg Kroah-Hartman --- drivers/clk/samsung/clk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index 1949ae7851b2..dad31308c071 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -356,6 +356,10 @@ struct samsung_clk_provider * __init samsung_cmu_register_one( } ctx = samsung_clk_init(np, reg_base, cmu->nr_clk_ids); + if (!ctx) { + panic("%s: unable to allocate ctx\n", __func__); + return ctx; + } if (cmu->pll_clks) samsung_clk_register_pll(ctx, cmu->pll_clks, cmu->nr_pll_clks, -- 2.31.1