From patchwork Tue May 16 19:25:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 94872 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp658266vqo; Tue, 16 May 2023 12:36:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7H+67C3FjbszXmMY4bt/qdBs2YyhQhVxQGUt1rj6dhGL4HJXGAxNm285m8tllGLz4Gq3gn X-Received: by 2002:a17:90a:8a8c:b0:24e:5344:9c9d with SMTP id x12-20020a17090a8a8c00b0024e53449c9dmr37048576pjn.38.1684265797850; Tue, 16 May 2023 12:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684265797; cv=none; d=google.com; s=arc-20160816; b=en+rF13QO/mxUFzmn60/Vl8c7SDk/nv9IrsHZle4IaWlNa50cz3btC89v3Rvb1HKJv JluMt5LjUk1O73fChV8IkFqHnhh6A4zqqNmNYqOuZDjVx9uiWku8CgiiXqoMtIl1vSCE 4zgb1MgD7NO7rEGmasm42t/4hb94WfDEZt76aVc7WTt5sQho3GRE165R/M4O93TpWwtN h/U+waIIqVOw7QTWCpU4jn3oB5PNc6wvjRPk4BH6+gQF8Jq1IvISRKVIfml330F2OLCq ipojAdyAH2SPFbUYbY47nmzmEVDuszrJHON7yTFDJQExQJUx17C2ZhbWVKxSnk2sJqfR KNnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=5oc/4U3LxxwXeuua8k3JKf4lQsuXnu0v2GB/nxPvrxQ=; b=BATVA//Qn8cT7YWJkA66Nc6xFysVDYw5myLGO16paIIUmc47vzSk6qRBt66u1YhJ9e gjlGQVShagSP5KThE72n4bcP6pdDfX8ZUO9D5nV4cCJhb8kJbiaTMP2fXiw6JcpQt/nK 1/IBD0gGAYJ3JOJ8HZTwIM8YYXJyRXUnIBb3lp74PpsbT1O2u9OvKeqixIpRWOaSYwOq ng711z7RV3cstl8Cwi3Au23Wkf4f+erFdSYkJBwLI6ppWdakOvd6LbwaXap6v+phvf6F 6HwBohOOVhPYtWyE+gdl8JlSIdaw8M5wVv7rMoGIoGiJFdh8vWoqFQe0cqii1JjxcGEQ 4iQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jrCnx+4O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020a170902ec9200b001a647aadbe0si19792888plg.568.2023.05.16.12.36.25; Tue, 16 May 2023 12:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jrCnx+4O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229486AbjEPTZw (ORCPT + 99 others); Tue, 16 May 2023 15:25:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjEPTZs (ORCPT ); Tue, 16 May 2023 15:25:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42CC57AB8; Tue, 16 May 2023 12:25:43 -0700 (PDT) Date: Tue, 16 May 2023 19:25:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684265141; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5oc/4U3LxxwXeuua8k3JKf4lQsuXnu0v2GB/nxPvrxQ=; b=jrCnx+4OnOu6Wo7yd0zVoHojAQarFBr68+unZtHgM3yVAnr+rNU+R5/lpQbq+5aE6eawVC AEdwA0qol+H3jj2GzaEEjoStSONGquqD/5yEISXfwF8EHY2SSce7nTC+zHTzNbLdoq6zOA QVIy0n7G1YAGiv3Sa2ctLXtSX2IQsy402BHGkvUeYw8bhIAdweQoedsnufDn7WIWHPhI3J Q56V0c4j+rFbHEBh9CsrrBC5Jk2T5GzZMz1yBz9BAmWx7TlxqS9SHv0LKB03r8SUoPtRpS beFQx8sj6yVw3A40aRneB+jl+wwV4ooi2du+nRZpOr30jkV5LEll+rfOiaj4cg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684265141; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5oc/4U3LxxwXeuua8k3JKf4lQsuXnu0v2GB/nxPvrxQ=; b=R9LF7eEz0yLjneDEU213z5m8mo1jQ821QyVAzbxo/+uCXJxz9qA9cUEh88lbjz9uLZz7CT FqPnxRRqg2JTrxBA== From: "tip-bot2 for Osama Muhammad" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] ras/debugfs: Fix error checking for debugfs_create_dir() Cc: Osama Muhammad , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230516182927.9171-1-osmtendev@gmail.com> References: <20230516182927.9171-1-osmtendev@gmail.com> MIME-Version: 1.0 Message-ID: <168426514015.404.17879655413957369852.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766080693161872695?= X-GMAIL-MSGID: =?utf-8?q?1766080693161872695?= The following commit has been merged into the ras/core branch of tip: Commit-ID: 2a1d18a5dc5056825b8e9527d188130da6256efc Gitweb: https://git.kernel.org/tip/2a1d18a5dc5056825b8e9527d188130da6256efc Author: Osama Muhammad AuthorDate: Tue, 16 May 2023 23:29:27 +05:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 16 May 2023 21:12:23 +02:00 ras/debugfs: Fix error checking for debugfs_create_dir() Check the return value of debugfs_create_dir() properly. [ bp: Rewrite commit message. ] Signed-off-by: Osama Muhammad Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20230516182927.9171-1-osmtendev@gmail.com --- drivers/ras/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ras/debugfs.c b/drivers/ras/debugfs.c index f0a6391..ffb973c 100644 --- a/drivers/ras/debugfs.c +++ b/drivers/ras/debugfs.c @@ -46,7 +46,7 @@ int __init ras_add_daemon_trace(void) fentry = debugfs_create_file("daemon_active", S_IRUSR, ras_debugfs_dir, NULL, &trace_fops); - if (!fentry) + if (IS_ERR(fentry)) return -ENODEV; return 0;