Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38382392rwd; Wed, 12 Jul 2023 07:03:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHZgo6dqgRkDlzQggbrwWoN0S5LlX8enFT1uBHPfgi2mIy2raGdt3CVrA1ip0ThxT0wFPX X-Received: by 2002:a05:6358:291e:b0:134:d329:c05b with SMTP id y30-20020a056358291e00b00134d329c05bmr15069813rwb.15.1689170582004; Wed, 12 Jul 2023 07:03:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689170581; cv=pass; d=google.com; s=arc-20160816; b=Fp964FFkDFyiONrl1AAshqkUUt8pbXHHTg4NeocYTqsd7GWgrbdZy/X8CnoSvZb91T CeRJb13zeQMbhzckWFXp5ozcS+6YymlTc99BowlE+0gD1UhckIHRn7edK+20+RYD+NAL EB/xTGSnBw7TspE5DQMFZEUraRN67MYr0Qbgw95dvJiYGY4n//fJMsrD91tegfjyNMoP rvSPt7+yjBAtK6yLDuVYz3xo47sI2CezCKWr+2iKn7ESOwnA40xAuRdLZba8nA0kUYRg LXbOHEV7yTztvZrK+Jt8zUx/IsX+E2zsrA97bTm3XHSJwK3v2KrRkZFj2tP/xn8PtKyk P6CA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=2uqz2bE7yp51gtj1c1rObEdF/SihET8pPG3OU0DbKpg=; fh=JhXhmoLZPEXdhmXqE/8e+2Hb+krPSuC5bqF0CQeb43s=; b=ynasPlNWBDG2naCat4IhNgbWu9ZjCwEFHl8oRxzJPUXSDuw7pztFttxrlTZCyYAt9v wXKaS1da8GIi1FhLQOtFu5bZxohgVtDd3E02D9j9nUhiweAFQSTGWlMqAYFV2+wKIghY JM1yYM0QLOVFeb5DkzoPjOxOroc7lxMLlVQpAoJ7fMuNXhdP/+2HhizQCBYrUyRlfaVI 8JeYQ0Q8N/atIquanTC2BB8U8Lv1w+xXpejY2l3gruPS2Geb2xA5wLh+fojjSS93JWfa d10wUW1RJpNV263kNU5DowTO8Rfuuu9XM+xEc0jXq0q0HpdZpCMLQcCa2Ytx0Qkk++fH 9Zeg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=It7qnKj1; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 68-20020a630947000000b0055795190dd2si3163479pgj.666.2023.07.12.07.02.49; Wed, 12 Jul 2023 07:03:01 -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=@vivo.com header.s=selector2 header.b=It7qnKj1; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232129AbjGLNYk (ORCPT + 99 others); Wed, 12 Jul 2023 09:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233734AbjGLNYg (ORCPT ); Wed, 12 Jul 2023 09:24:36 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2114.outbound.protection.outlook.com [40.107.255.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A20CF1BF7 for ; Wed, 12 Jul 2023 06:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C8lgYKRxUEYc/+oVSp55h4eJ7lflueIOemItlv2d6X8OtcNvlqK/Jt0OYfYVaFfrxNsx+URfAP2SisQT1xcXk+GRBwWpKK2+5IJdS1+1ZFQZu4zfU3WNKl+JK7ivlDeDfNcpvRGsCcTL02ZyNFzmprQLmKbcge7enntt/4aIxj0qXw2OylO7vvlPNIz9l6kjclrmdcC83BCeECmB/u9aa6kFL0zWSKSNZck8+LLNDiY0q0Ocja20yY/cmgs2jmxmS6OLatoh9m5Omm94rsDW+wuQjDcMM3aSWJFgJj9jQCjYgKuQFhker+vN7K6xCWoEw8rqcJ9VTH1d0kAhQPUMVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2uqz2bE7yp51gtj1c1rObEdF/SihET8pPG3OU0DbKpg=; b=BviUq0ObNQZGDvGy1yGwdtceNM83KVo8V70xG3yo5z5X70u3FNalRDV8k3cVKgUjnRTqFBwZxSB3tT8qNMm7AJfgTb0TokwEs9J3U1kt9OMezMvLd/94SAB1/6m9biO2kDNyDPIJHuNa5j9bJWAtfnznfVHLVWjLYTSoWVbQ7+bPfh1MVsDScBQJzwgXNYQeXr929HAsdVar+ZKbk0ufglHgJAEQBLfkc7WvpOXsm+8LfmMKSeokXvyVjzB3w43Qse37ahGw5kYdqwaCeoLDD4nsqH2r5fq7sNwGBediu5WfVKcafVrjpa1zgzatPZfXiM69jvr1a0B9Ebp7MnDDqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2uqz2bE7yp51gtj1c1rObEdF/SihET8pPG3OU0DbKpg=; b=It7qnKj1j4AFlhpyEEB/zF0Cy3P8a+rmbnClzm/IQMEc34S4w+6xnWhEvGDqPlzZ7WIkGvJBSoo5Fh7SvYShFToEm1OaEaFDN8c0Lz44AFGA5+zneTMT8tCe6LubB/XCEMR+2LK3MRFOuE6ZLy25DS950wmZThbvr7You8UkkT3D1nkuRG4w2RpEnXoYoXTlAlNDXXpaitNsFKLxpCGCQntMIGO2ef5cajoWOlrKXU4DKWEbfhLudszTHc6ytYUakjeRiBBFd6KOCMZ8IA2e1LH+GNvksNUTjkxhcM/Cpv/17RiEYdL1ZnDuKn+OapFOyLt7BwaWGYQUXONeUbDTIQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) by TYSPR06MB6339.apcprd06.prod.outlook.com (2603:1096:400:412::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.20; Wed, 12 Jul 2023 13:24:23 +0000 Received: from SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::2a86:a42:b60a:470c]) by SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::2a86:a42:b60a:470c%4]) with mapi id 15.20.6588.017; Wed, 12 Jul 2023 13:24:23 +0000 From: Wang Ming To: Greg Kroah-Hartman , Wang Ming , Liu Shixin , Rob Herring , linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com Subject: [PATCH v1] bus:Fix error checking for debugfs_create_dir() in mvebu_mbus_debugfs_init() Date: Wed, 12 Jul 2023 21:23:28 +0800 Message-Id: <20230712132343.8802-1-machel@vivo.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TYWPR01CA0028.jpnprd01.prod.outlook.com (2603:1096:400:aa::15) To SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB3743:EE_|TYSPR06MB6339:EE_ X-MS-Office365-Filtering-Correlation-Id: ac34f690-b390-49cf-38e3-08db82db4dfb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 18PVq5BWX1yYNsZIbx+cvcJWQg2GC9omps40sgrh/6wkWc8lTqjK9f+VEToMkYs1d9YVFExVojDEagqyP4Dwbktv15X1WFvLygeFZUGNDqiKNggVwT6F8oDYB9SSd5zVkSewjsIBTPdz40YfBgtkEK/9IZy2yQnIrjCZnkOalwTD1gFMOxWwEkWh3e+nDa0CwA74gj/V/KLh5weLD6EdQPH43l5V1rUplHxs8+6ZENwXH83jkMl1LKkinPUvQE1ZcNn1BqcT2iVegqEH21FjWNl8Y9jmwIEN2GGP8vC7ZmKjK0aOD3AuTFUSCI/bFv8HS4iknNlUVhTJQtOj3RL/5rRhriMI/j0/9dyibkNyRmCXU+WBtF34xsJav752DxEmtHu1aN9dhZ66S/02y4D15VyWiaNF3OjqCVXo5JOpAY0goo9Rc1sig3GyM5c9M6/l9pV4/G/vcrYbJHI7wV0c/f73bP4Vuvmh7n5FwvEQSBXQ8v/oLGyd54rg44jhBw2McazzPPgbXf6Q9L3/RBampFgErSsRwfwc/bUZbp3/pFFxWOwsGb6MHtFq1tfPebzZIyNTnKACBZ24dY+zijTae+SjLFpplfv6dFiTdB764nJSslpeW8d9UxeFgQqNTXpz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3743.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(366004)(136003)(376002)(396003)(451199021)(2906002)(6512007)(38100700002)(38350700002)(83380400001)(2616005)(186003)(26005)(1076003)(107886003)(86362001)(6506007)(5660300002)(8676002)(8936002)(4744005)(36756003)(110136005)(6486002)(52116002)(478600001)(66556008)(66946007)(41300700001)(66476007)(316002)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?of6gXoO6FA1kdn0JwcyE8BEWGsjjbNWeu6f39VDJBZMD/3KqPTtl9vTmUqgt?= =?us-ascii?Q?cjQQHDKhjN0HXYVQLiy7/n7KArvZ11SztBTSc3XBnfQELb7qxNRPAIagqeMP?= =?us-ascii?Q?d4GKqLeyU78sSeyCjZAb99Sl9NbHqnxRb4/jMwEZKwFk0un+2s1v2AYiH4PO?= =?us-ascii?Q?PeqnLyCX55foUjVwtt6fLE8kuOtKEbFxahJhLZ9X9/9fqGtwDRqJl3PlfHeU?= =?us-ascii?Q?M727UCa/mbiXemG6/AgmG8wwgnIQDedgZfKqKe/9QW7qsddMP6PLXtXdJ3v3?= =?us-ascii?Q?OVyuAaU1Zig+588+T9ZXjDDERzsqb8uz6r+DeYv9r9eeBfh7X2nylsbQhbDY?= =?us-ascii?Q?PbkqfhF1Sg9f4AMjYuvWdGYA/uXBue0G/RJEguyONh2ILC7KxhqBj12kOCIG?= =?us-ascii?Q?AtF64neNuPC3HWfC8kN/CeXf6CmgSJMd1hnzDHX6GRti+zUbfqvEmP61rNw0?= =?us-ascii?Q?2voR2bdAYUjuEidXwfmE9ZqQCexOyr+CtUbS+MiXh7xYtiQ8XihQlipbCwRa?= =?us-ascii?Q?rlo43pEeXsABOHBk3x6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ascii?Q?mKtsRcLq8wNd8GVVSrkBoVm9nokkhr7HbcaMYjICJ91iYPq8Rnv8pQc+OtUD?= =?us-ascii?Q?WBhS4UlcxB2CFb+m0pTZNlZpTGB2GZadsNZ0ZOvF+7Rx6jlqjbXk3zWDOSK/?= =?us-ascii?Q?CRD/VQmTLd775gPm+5jGkqESFWtV3X7q7+1Mh5xw?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac34f690-b390-49cf-38e3-08db82db4dfb X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3743.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 13:24:22.4337 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Asi5ZUEsTvPcntTZp3T+5BPPunOrLPhP5fSWo/DvLWMNcMaCAewOm5kj2lNXVUQs7TgyQ5me219KYdbXnvqzLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6339 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 debugfs_create_dir() does not return NULL,but it is possible to return error pointer. Most incorrect error checks were fixed,but the one in mvebu_mbus_debugfs_init() was forgotten. Fix the remaining error check. Signed-off-by: Wang Ming --- drivers/bus/mvebu-mbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 00cb792bda18..4c514894cc1f 100644 --- a/drivers/bus/mvebu-mbus.c +++ b/drivers/bus/mvebu-mbus.c @@ -993,7 +993,7 @@ static __init int mvebu_mbus_debugfs_init(void) return 0; s->debugfs_root = debugfs_create_dir("mvebu-mbus", NULL); - if (s->debugfs_root) { + if (!IS_ERR(s->debugfs_root)) { s->debugfs_sdram = debugfs_create_file("sdram", S_IRUGO, s->debugfs_root, NULL, &mvebu_sdram_debug_fops); -- 2.25.1