Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp810613rwl; Thu, 5 Jan 2023 05:03:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXsgdNVV6QWNyrb9617OQYowBkjMusmwjY+25zyB+i2orwoZ2olVw7SmMUGZeFQ2BpJX6tX0 X-Received: by 2002:a17:906:9616:b0:78d:f457:108f with SMTP id s22-20020a170906961600b0078df457108fmr44340916ejx.76.1672923794733; Thu, 05 Jan 2023 05:03:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672923794; cv=none; d=google.com; s=arc-20160816; b=Rk6Y0k53lSW+u0AcK0eBwZxIceL2/Zk6yVa4FBLWFo4HGNJZR4mKToNziGlhbIoFaH 8pPfH66iPGUigWcukZr373LFqYQdOY0KCwgOfpdrRmJ5RtqIpOsSLAXiB1tQ3Y7EJTgp GssqK86Qa3ex+1WkuyiIXc+DkYLYKY6dtyGcsfTqbGuUlgtieVgXpQufiBssvBk9vupJ RhN1b+f81w36bcO5fqx0lm4Wt154z5J45USV6uo7s5jg9uY26xvwZCe9cUsetsfDSYYC azEVgBs7Md4b3TlHIxbHr6zP/rKZb3u2wVieF0nXwg2Mq7gg8AX+RESJPyzqmp0dbSdM 83UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OtW5sVHPrPacY7+6XRvAym90npsF53Vr4aDj5e6G9fQ=; b=QwdYiZscsmmLt/4MabJCFJE/bCBGKwoEnLPegYxqLElIhxqoABviV1nUIevAG9pq2k jJ/PcehoY9XT6jiazwsGLPQfMQ45oN3NKbSRBwjz8lnRu/vlKNeaWbzaoL/+rgimap4W se/cFxvlcBOOaWN4BJLNT+Hr7RffGfknM0wUmeOrh6MNbgvWo/2v7vIFcV057Tn25NrN GkxcRuFwa//P9EYjQPyRVDd2bxe2YEB9i3aSsM37Jg0pSd5QLSfwvC351Qrdx57KtBXp lA+WnejGA8S9nBGRhNlC/8FuQRG1Y3eBiaKICOhmLniuoIHjdnNbXlmwsMPgUYvHLi49 r1gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j8CSJ9Qt; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw18-20020a1709066a1200b007f38bd15f5csi33315828ejc.582.2023.01.05.05.02.53; Thu, 05 Jan 2023 05:03:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=j8CSJ9Qt; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233957AbjAENCP (ORCPT + 66 others); Thu, 5 Jan 2023 08:02:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbjAENBw (ORCPT ); Thu, 5 Jan 2023 08:01:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABB005B17D; Thu, 5 Jan 2023 05:01:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5C114B81ADD; Thu, 5 Jan 2023 13:01:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76597C433D2; Thu, 5 Jan 2023 13:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672923704; bh=D+P1416zC83o6ONjBzuZK93GoGpMJCp5lUzX1gzDVCs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8CSJ9Qt2cAsFYxZDzw4v+2j6WRcH2fHX4DJTgFbnA4yKrfG2uhyVD4ph6xKiPp3v zbTMiXY7xhTFv4jc1AVpxFpnmrpAavyXaaDKqQJ+D9sfp4jgnL4BiwPBKrcetwlYqR H9ZpZNQt8nmTPIXqfrHx6kXnBh1ECY2XM1dAn7TZ8pS4jMpxnb2TeOyBKoG4cUJAd3 uI5q4bV9v/7ygKWToR9metRWC9o5LI7HrMMa55j32Ww9S3XZacFU2/FxM39bqeRf1s gpWrav6J/MH3eDReycDfhi6AwcnZlOBNwqSj4ETQnLnfTmRAUVIa35scuhchDpvdKU 9efsejJHtM0Qw== Date: Thu, 5 Jan 2023 15:01:39 +0200 From: Leon Romanovsky To: Jiasheng Jiang Cc: pkshih@realtek.com, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] wifi: rtw89: Add missing check for alloc_workqueue Message-ID: References: <20230104142901.1611-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230104142901.1611-1-jiasheng@iscas.ac.cn> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-wireless@vger.kernel.org On Wed, Jan 04, 2023 at 10:29:01PM +0800, Jiasheng Jiang wrote: > Add check for the return value of alloc_workqueue since it may return > NULL pointer. > Moreover, add destroy_workqueue when rtw89_load_firmware fails. > > Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver") > Signed-off-by: Jiasheng Jiang > --- > CHangelog: > > v1 -> v2: > > 1. Add destroy_workqueue when rtw89_load_firmware fails. > --- > drivers/net/wireless/realtek/rtw89/core.c | 3 +++ > 1 file changed, 3 insertions(+) > Thanks, Reviewed-by: Leon Romanovsky