From patchwork Thu Feb 2 09:32:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qi Zheng X-Patchwork-Id: 650841 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 391C0C61DA4 for ; Thu, 2 Feb 2023 09:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbjBBJdp (ORCPT ); Thu, 2 Feb 2023 04:33:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232294AbjBBJdg (ORCPT ); Thu, 2 Feb 2023 04:33:36 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD99A13D6D for ; Thu, 2 Feb 2023 01:33:11 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id v6-20020a17090ad58600b00229eec90a7fso5533186pju.0 for ; Thu, 02 Feb 2023 01:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SbvMveejPnNY0dtntPgcfEf+7sqTjGePPLxtPF4gXZI=; b=YduFipxFTmlAHpxZW30BY1Z/+xbuscdW+jMpyQIoTO5Wes61YwldcGudWmPnZc5hQC oXDEKqC7EUbOShWgQIV8e72qrEzkb7Qzza/0X50BjcHcis2voFWhnLuNHOqLGyBzjqPD V0xb20qXsu4TyE4XLEIV6a+ETrgeZ6CwlS1H5vgntybKTokYdri4vqoY2ibSaTwTnm+T ePufc82B602pfSFf4urGw6BUrZobl6ES4EEqBwBxGKVVs7ZEBdWk5KnWezmSp8IPvYEK sYmkJsK2XBqVtWtPJvnh4gob6ypzf3E/9r9sizvFfOiAOH5j+IIZYIGtbq0erlGMaSRq UYQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SbvMveejPnNY0dtntPgcfEf+7sqTjGePPLxtPF4gXZI=; b=U7nij9PVBHhP8gSm0Qmh9IPFs0mqHPKoLugn855ful6IzKP0X/AgbUjDyXMVMsR7Cp lQgkcyNOBu59AviKw84F+/5Kw5bBMGB1GOgY4rx3Az3iM73dUDJhkuCCFDrlWXnMn7NP vKwp1CLBa9YntVAYqmXONA7I7G8ujn6z46saJoQbtcQtcKJwLygm86qJ6MRHQvaULifH ypk+hYsqin5aTH4x6hS5jvoGcGI3mvWmV73BKHy5ZZ8NWRvBHT/FoXsQQc9a+DRQqbDR /y/rqh5NgWee9ZsjBR4podrIVKVwPawA8A2H820LnfhOcVnsU6DeLCdRuFL8fmbwADm/ 8JcQ== X-Gm-Message-State: AO0yUKX99oXGMZcjy6xlMbflmAwDSPqGpeAhG9h/Otf2auG2qtY8GIUS ZOEGiQ22xWahQLJefbpxKT4UGA== X-Google-Smtp-Source: AK7set+SYjhqLtHWEWxKvlhuML4XhqmA9D1c+JVtoi+6+bX+9bYjuAvpwXHu3l5witPhmx9ffaFCSg== X-Received: by 2002:a17:903:243:b0:196:82e2:799a with SMTP id j3-20020a170903024300b0019682e2799amr6960578plh.4.1675330391288; Thu, 02 Feb 2023 01:33:11 -0800 (PST) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.243]) by smtp.gmail.com with ESMTPSA id c10-20020a170902848a00b0019254c19697sm13153343plo.289.2023.02.02.01.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 01:33:10 -0800 (PST) From: Qi Zheng To: gregkh@linuxfoundation.org, rafael@kernel.org, j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net, vireshk@kernel.org, nm@ti.com, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, netdev@vger.kernel.org, Qi Zheng Subject: [PATCH 0/3] some minor fixes of error checking about debugfs_rename() Date: Thu, 2 Feb 2023 17:32:53 +0800 Message-Id: <20230202093256.32458-1-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Since commit ff9fb72bc077 ("debugfs: return error values, not NULL") changed return value of debugfs_rename() in error cases from %NULL to %ERR_PTR(-ERROR). The comments and checks corresponding to debugfs_rename() should also be updated and fixed. Qi Zheng (3): debugfs: update comment of debugfs_rename() bonding: fix error checking in bond_debug_reregister() PM/OPP: fix error checking in opp_migrate_dentry() drivers/net/bonding/bond_debugfs.c | 2 +- drivers/opp/debugfs.c | 2 +- fs/debugfs/inode.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)