From mboxrd@z Thu Jan 1 00:00:00 1970 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 C2D30EE49A0 for ; Fri, 25 Aug 2023 07:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243165AbjHYHgE (ORCPT ); Fri, 25 Aug 2023 03:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243245AbjHYHfx (ORCPT ); Fri, 25 Aug 2023 03:35:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F6052109; Fri, 25 Aug 2023 00:35:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CA75A614B3; Fri, 25 Aug 2023 07:35:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 545EAC433C7; Fri, 25 Aug 2023 07:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692948940; bh=XPNtAfyvKj/g+y5Rpwes+9pS9wajftJiM2gsLqx24fc=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=UHWYhGuVuMmm4aqV+hto3J1sYBnTWnIolq8A5PUKDau/MfCY53auUc8nnT0aiG27z SN2vXKbFq56z6V4zJMYRM0nPF5M8H6NSqyKQ5bMwiApCpW82t6CM8b5mvOaMHMNjxG o3AEHtDvgnXypMQmp7Y4PBt5NDmLW6HWPp8vVb//QBlLez+BZwu9AITBDl0FYWIBHt fcl4Eaaa+V5sNEA40/15msmV4qXhRF1j2s3mC/51CBN95vkX9iQ8V+H/EivLGuj39P OOHDh+AbIuYOQJG9n7IYnla8KF4/B9Xxf15z9ne+277CBbBMbOJPk4NLziAlGoYw+Q wldoIfBQ0gxpA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v1] net:wireless:Fix an NULL vs IS_ERR() bug for debugfs_create_dir() From: Kalle Valo In-Reply-To: <20230713030358.12379-1-machel@vivo.com> References: <20230713030358.12379-1-machel@vivo.com> To: Wang Ming Cc: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , Rajkumar Manoharan , "John W. Linville" , Sujith Manoharan , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com, Wang Ming User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169294893610.1674223.1208799816873106062.kvalo@kernel.org> Date: Fri, 25 Aug 2023 07:35:38 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wang Ming wrote: > The debugfs_create_dir() function returns error pointers, > it never returns NULL. Most incorrect error checks were fixed, > but the one in ath9k_htc_init_debug() was forgotten. > > Fix the remaining error check. > > Fixes: e5facc75fa91 ("ath9k_htc: Cleanup HTC debugfs") > Signed-off-by: Wang Ming > Acked-by: Toke Høiland-Jørgensen > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 1e4134610d93 wifi: ath9k: use IS_ERR() with debugfs_create_dir() -- https://patchwork.kernel.org/project/linux-wireless/patch/20230713030358.12379-1-machel@vivo.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches