Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3545168pxb; Mon, 4 Apr 2022 20:42:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOvEHuRc62iynLysoxMrHrcnu7Bha/e3q7CEVeaU5BduNSDYmA7mwSeImBtayKgo3j0wQz X-Received: by 2002:a17:90a:d584:b0:1bc:e520:91f2 with SMTP id v4-20020a17090ad58400b001bce52091f2mr1781663pju.192.1649130166382; Mon, 04 Apr 2022 20:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649130166; cv=none; d=google.com; s=arc-20160816; b=wx9FGPxiy4/lq7AVkntUoTx42MmqWtikmvpqLpmkGOUkBhO7SBDhtvgTbvJ+745ASv cGe/pnLFVZUmACXU67kR0Ozscnaaz/EWiL7e/D/k/NRC9cMCZJxtzzHybzrK7pvI6+OX tfcMMCZCUtx3n9M8cDEHqF8FRWNsLspm+sVsG0LVugG7E90KDt8bFe2MJ+RtBJI1mbq3 FqugEHIs6Gk43l1bQGvNyMn1jJ0eUQimF2Xd7pQr1UW+40kahcSZAKtbCv9KFLiH0aA1 gVGT1TRGx23durkmeorsRIHQZrBQXyzNg7vaVbYM8BQDl80xwmc0bMdfVCH0xRLiuOD/ j5Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:date:subject:in-reply-to :references:cc:to:from:message-id:dkim-signature; bh=YJ4G6EfSMlc9a+RsjVXiyuZ8BgneqfFR+sZ3NViWAa8=; b=RffOzm7pfrAexT9IGQSzKWNBiukeJ/dOdoZjwZPXwtBS+2uD60CZARXg9+0j8omIuC ThPlstKD7pigbbtAYXhSyMTAxZZ9iDTvop/DTTrJvpH8WL5B5s9X0DOITEK/AnJr+A0k fTowJX9vKpYkKHOmrgtIuq+oh7PaUZWDOhpUJ0hmN1qTjDi0vsxXnVUS0oth0s9PmBS3 MknsqLO4ujr73+uNZTSdFAZ4z6cs42Fm7SEN5PA9mIU35Oww/CSZQVQyGTqv4FB9Aepn Dy7sBcSYeN8Kb07UTypKgEEmuFYEk+9m9Q6v50jc8372c3F7AwwdxyzW1DRQ2OhuQ3kD a1+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=VcoJgmeH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id be3-20020a056a001f0300b004fa9a8cc0d2si11326140pfb.377.2022.04.04.20.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=VcoJgmeH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3CEA4A147F; Mon, 4 Apr 2022 19:39:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbiDECkp (ORCPT + 99 others); Mon, 4 Apr 2022 22:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbiDECkh (ORCPT ); Mon, 4 Apr 2022 22:40:37 -0400 Received: from out203-205-221-209.mail.qq.com (out203-205-221-209.mail.qq.com [203.205.221.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29945158D86 for ; Mon, 4 Apr 2022 18:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1649123031; bh=YJ4G6EfSMlc9a+RsjVXiyuZ8BgneqfFR+sZ3NViWAa8=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=VcoJgmeH+G/bqJYalkW6y+7JCqtvl8JcLHWjuJl8UHbB2SXtUlR3FGKNVDgHyQS8u 0srahIze0xFt3iHb7ZjZrJcj5Ch9YDvTLWFcmkXFQ6i++4YaBHDnOAltOXf9EBb7lF BUXKdj7Xy88DRMQa9lSIR/rRPbF12REgv6Zt6gYs= Received: from helloworld ([59.172.176.225]) by newxmesmtplogicsvrsza5.qq.com (NewEsmtp) with SMTP id 2973BC56; Tue, 05 Apr 2022 09:10:23 +0800 X-QQ-mid: xmsmtpt1649121023t61dqi5iw Message-ID: X-QQ-XMAILINFO: OZZSS56D9fAjE4XxrPhxnzYSX90Lp1RulwJjuhj3Ad5DeArzICeNyT6fu7ejU8 EpiqbiEcoMIZz6o9SV3LKE6o6+gMPUjlc3wP6jH8zA6QAqCcAh4UgL3M83VB+YqEhTZu+3n5S8Kz xFomaiy4AoHpOIv7HasvXysadnzVInm4N+9JEsnJgFzb9eTrQVsaxcU16MxQsWNdhVk+Ee1/DrkE RLpNvJlBtnH0lLZs3o2XsjmnacJKkxbnn2b/4TnkJxTaR2s6sBZJuP0EgAwUf/FnmVO4nz84hDoD GyxG6cUVi9JQ7KS2AGu1huDd/FqV1BkHJcFxYEyCdB/SFOjVvP/rEzv8yNjBZwH46VKMLVW5hODU 6quiF/NDMaZRVsDBUuSrEdpjQZosnqN8A1HpMVHj7QXCHrmL7i5yhujNDYYzDfScrWhbZM0MXJPC 7xU+slEAU9HAmdCLSWwExHxk9JJk2zHqsL5MMqu/Kic2Mi9qiLs7OootEky5IdJEkOdzA/YvQxF9 ZcaQyKdhWYXOafjtUGQdcLXbLL+TNltNfD2JDrV1wKaGj+7Medxt95jLGOnIksPwVKIkCPjAqJ7s FMypTzcC6Wqpqa+OWeeEfUj0xfq6ip8ObX45IpjVj5yZyg5N2xaE3xLosvguRW69Bqx0Zz0o1FZH CS2DedQQZUNcPBq46WmAaVOzDdJhX5bDkluA24naGPtgWhRJ26k1GhixgiWRsQRe5ONbfLVXskKM GVOMQIrjE7q+xQ0ZD2QiGYbXmZRTwQ4T/bfFN7bG+yY+D8jWF92QsoJ7tIn0MembYie0G+CZZpyD T+G+0zMBDXkdBUgXoP/exl4mUgvMiEPt0WGej9LbrH2RNlpofWHvu30UMh16GulTv410zkvrgUyJ DHXLDc+dJH2TgjPVOSG0QQTh82MqVGnLo6uTx304Vu2dkqnznYGY/eqyyi1lxR2Q== From: To: "'Greg KH'" Cc: , , , References: In-Reply-To: Subject: Re: [PATCH 2/3] staging: rtl8712: add two validation check in r8712_init_drv_sw() Date: Tue, 5 Apr 2022 09:10:24 +0800 X-OQ-MSGID: <000e01d84889$ee63d8b0$cb2b8a10$@foxmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQO0Uoy989zRJT7S4c8YGkbirmJg/AIqqt/GAmblFDABs2btQg== Content-Language: zh-cn X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Monday, April 4, 2022 10:30 PM +0800, gregkh@linuxfoundation.org = wrote: > You just leaked memory :( > > please please please test these types of "fix up error handling" > changes, as there are lots and lots of ways to get these wrong. > It seems that you missed the third email in this series. In fact, I did not ignore the memory leak problem. But considering that = there are other paths which can also lead to memory leak, I separated = another patch to deal with them specifically. In the next version, I will adjust the sequence of the patches and add = some descriptions to explicitly show the relations. -- Regards, Xiaoke Wang