Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9384088rwp; Thu, 20 Jul 2023 04:17:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGD7LalA7g/4tA9lyExQmCkz2LjskqdWTWQWU+JB6SiCcxzOos/Qvh2MPE0ANXbDdU4rriu X-Received: by 2002:a17:906:84:b0:99b:4aa3:6480 with SMTP id 4-20020a170906008400b0099b4aa36480mr2399760ejc.40.1689851827790; Thu, 20 Jul 2023 04:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689851827; cv=none; d=google.com; s=arc-20160816; b=Frz/NTUHPli8qiEFnJLwj159+5T/IApmvmsfQv+9oByy9vD/3U1Q9uqdqHuqohgzVS JTjTm7sPDs/7GZtt1s5f8YVILJxpGebckrUeLEYpI1MqQiBmJ9esjSSPygG07CjH17gH uQquNbmqDd8cRVoOH47wiMPZZaFzvY/NTVezdG6Lx9dOxjUS/qkuNbTMCUFS7uYN8VU+ 6TnJhEyBiFZy+5I1djyJz0eoqKystfKknrwjAMTYL3uTe3OEIjsmk858C4kYv1Bgl6S+ dIMO1cDtT90dQZZGHFjL9QcyvHiwLn1D8A27Z/zn8NhlVoGIUWWccEcJx7x333rbseQY NTmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=U9gHz/fFp0Gl9tgjEgz3BmVFVaQ9EGXgU4wCFul7DOo=; fh=ExPtlyxNFvKT5xsV9zdLb090n5PnZ0Oc2UFOE7/3YCU=; b=BzhRoXUlQ50di/7zSV0QEsmN2tgcoZuGY8XsoH2XCmqMtRqTj9gCVsyx+5iJyAjmdu qN97laJEjh0KKlLI+c+tzIwqCVD86AwTId9DlGnD6MeRKzqWGUr0TP38kg00RKOpWg+R 8bZsA2Z1YMhc7bluxtn/OudloMRo5rmWwPL/O/Iu7MOtiKXCEeukgsAu1vE1guYL8LTU hUvvR/DPfQ3rmTzs9sAzNw9rBwem0mU85prOe50XmC+caAr3+w9wBJOeUwO8ibhseh7F 3m9hYsYwcIj/KSqPxGJokoqYvFQ3qlp7/+qGqa1In0xPjk8ji+2Q/1p/IgrUmYosHBfI 89xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VQBF3d4G; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gy6-20020a170906f24600b00991fe707692si530910ejb.63.2023.07.20.04.16.43; Thu, 20 Jul 2023 04:17:07 -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=@redhat.com header.s=mimecast20190719 header.b=VQBF3d4G; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjGTKUz (ORCPT + 99 others); Thu, 20 Jul 2023 06:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjGTKUy (ORCPT ); Thu, 20 Jul 2023 06:20:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 460C7E75 for ; Thu, 20 Jul 2023 03:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689848407; h=from:from: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=U9gHz/fFp0Gl9tgjEgz3BmVFVaQ9EGXgU4wCFul7DOo=; b=VQBF3d4GTRMKhno4QbLKoQjAZXd+H3/Y+RLVbxZ4XzVqrS05YGVqpCxyytz6KUbNkSpQKo ty+IK2NhfPFuy9zsDgKxIRBu98lUnDd6zeNUj/qloxfSlOm42QhViercRy2BQZWl2pIF84 pNbM4A6aHq0axLDXdQxcLONOShZLlwI= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-FAw0-XFFPXWHPTQN3M2rrw-1; Thu, 20 Jul 2023 06:20:06 -0400 X-MC-Unique: FAw0-XFFPXWHPTQN3M2rrw-1 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-402fa256023so1894041cf.0 for ; Thu, 20 Jul 2023 03:20:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689848405; x=1690453205; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=U9gHz/fFp0Gl9tgjEgz3BmVFVaQ9EGXgU4wCFul7DOo=; b=fMgU0zZINEYS9tAYnvgEKPqKWsYMgW+WCmh+P+BiwuY9DTL0jOD111DwzZdw1bEoPw C/WsAQJSaBLlMGE5e/u8YYOb/hLAkbNdNp+m93Bd7XSsL+z5wrNf4sGfCZCR5bYb90EF XE3mGqMEAJlpp/dGU/nKaogQq8n786PsE8odyUOoOl74ZG78VphKbSfSBeXh4/JqT8Ec O16S9fM80LG/xEq/3tRoex0UcMiX144zb8jPf9KcDm7ktGLByPi0qAF+f/SbO+UgjarR HfnmO3DNjK8Hko0d2cUWj0KQldqpsQS4dbOnATk3nJApMuIeCGqPphe+2sC63LTQxh/x RmgQ== X-Gm-Message-State: ABy/qLaXd+/KjPCEEO+WLiY8RVeNwHqcQbli+JPxIhI2VH7QUfFmTVXy LYTJ0QyZxwq4j7GJ+gAAxz9/jOn05YsyAXG3qc3OlWQdzkvn5Myg8AscvgoOKPhffYiKftCuqvk 0whWaMau/Orthq58YrpMrpmgf X-Received: by 2002:ac8:5905:0:b0:403:b11f:29f0 with SMTP id 5-20020ac85905000000b00403b11f29f0mr3026677qty.0.1689848405743; Thu, 20 Jul 2023 03:20:05 -0700 (PDT) X-Received: by 2002:ac8:5905:0:b0:403:b11f:29f0 with SMTP id 5-20020ac85905000000b00403b11f29f0mr3026655qty.0.1689848405474; Thu, 20 Jul 2023 03:20:05 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-226-170.dyn.eolo.it. [146.241.226.170]) by smtp.gmail.com with ESMTPSA id k7-20020ac81407000000b003f6ac526568sm214341qtj.39.2023.07.20.03.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 03:20:05 -0700 (PDT) Message-ID: <47eb92888fa46315214ad921a9ac45b695355a36.camel@redhat.com> Subject: Re: [PATCH net v4] bonding: Fix error checking for debugfs_create_dir() From: Paolo Abeni To: =?UTF-8?Q?=E7=8E=8B=E6=98=8E-=E8=BD=AF=E4=BB=B6=E5=BA=95=E5=B1=82?= =?UTF-8?Q?=E6=8A=80=E6=9C=AF=E9=83=A8?= , Jay Vosburgh , Andy Gospodarek , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Taku Izumi , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: "opensource.kernel" , "ttoukan.linux@gmail.com" , "jay.vosburgh@canonical.com" Date: Thu, 20 Jul 2023 12:20:01 +0200 In-Reply-To: <20230719020822.541-1-machel@vivo.com> References: <20230719020822.541-1-machel@vivo.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Wed, 2023-07-19 at 02:10 +0000, =E7=8E=8B=E6=98=8E-=E8=BD=AF=E4=BB=B6=E5= =BA=95=E5=B1=82=E6=8A=80=E6=9C=AF=E9=83=A8 wrote: > The debugfs_create_dir() function returns error pointers, > it never returns NULL. Most incorrect error checks were fixed, > but the one in bond_create_debugfs() was forgotten. >=20 > Fixes: f073c7ca29a4 ("bonding: add the debugfs facility to the bonding dr= iver") > Signed-off-by: Wang Ming > --- > drivers/net/bonding/bond_debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bon= d_debugfs.c > index 594094526648..d4a82f276e87 100644 > --- a/drivers/net/bonding/bond_debugfs.c > +++ b/drivers/net/bonding/bond_debugfs.c > @@ -88,7 +88,7 @@ void bond_create_debugfs(void) > { > bonding_debug_root =3D debugfs_create_dir("bonding", NULL); > =20 > - if (!bonding_debug_root) > + if (IS_ERR(bonding_debug_root)) > pr_warn("Warning: Cannot create bonding directory in debugfs\n"); > } > =20 Does not apply cleanly to -net. To be more accurate, the patch is base64 encoded and git is quite unhappy to decode it. Possibly your mail server is doing something funny in between?!? Please solve the above before reposting. /P