Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp966913rwb; Tue, 27 Sep 2022 06:54:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hO/2b/LIROIY2EjMGOS+R8GH2cH7nbnkgrcmhuZgxwWYIgXwf9uxupc3dAwAbseqgkMJ9 X-Received: by 2002:a17:902:d512:b0:178:6946:a2aa with SMTP id b18-20020a170902d51200b001786946a2aamr27674234plg.116.1664286863932; Tue, 27 Sep 2022 06:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664286863; cv=none; d=google.com; s=arc-20160816; b=r/4hmOztQ68GITkabauuP9OlwMBBxA3d2nnc2ZjzUsuRYatd4fOda2Yu8YHGkGzfVg 9AT3D71ghgS8scb07bmwYPReIwXv5GD9ZOfjRKmwqu621m1Tt7PDW1L1jkhdNOq3jPo3 a1VgCjVZazjorACqcenqQ0F1rskgpyVIGd3BWc8bC77kRdAogsuKmJnuj1QxzRl1L2do AXlu/LFWcFxyDL/0fzRfmjazd78tszWKihDRLsc5FfXC2XEn+xHbpuIVSPI6sCVC8TIY SE27KiKoc3YpU2fGYhf9GsdPl1/jk6iAsZ3cicwEv+yKiieCt3V9PKoGjAHhweQlJihx NJlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:from:dkim-signature; bh=42xfWSmhmYjq+twL20Yxs1MCHTnMRhNYnQ9ldZwy/Rs=; b=oS3oKGx4pgKHB3gINTFjAa0Q3dBPf6wAMBtm0dA/gICXbujlwwWmHMmZNDkerDfyQO Tqss3LAMleibVa15MnxfDnHkNnO7E26vHKfxQsyJkuz6jYQWI4L5q25lWXG0nMce+7nI m4RPGFKng6guQCk7NrccNCiR2qijXuWFGBnm4PI+qgz1/AbFb+4J+dOtvTDuH91G5mh9 YhZH09WgToZmVI5NnDd3M+/JPxHORPGGWm10uw8DrEY5m7il0PSe68rMEGj+gY13rxcn dV4y/JRc5/KCXq4NWcMCI83fp80ea18qgmlzbhBlXs/78eqyWt1jARfYSrggdkPCsGUj OPGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=xMO2xKkA; 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=foxmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j69-20020a638048000000b0043882f3e6fesi1923513pgd.440.2022.09.27.06.54.12; Tue, 27 Sep 2022 06:54:23 -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=@foxmail.com header.s=s201512 header.b=xMO2xKkA; 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=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbiI0MzV (ORCPT + 99 others); Tue, 27 Sep 2022 08:55:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbiI0MzT (ORCPT ); Tue, 27 Sep 2022 08:55:19 -0400 Received: from out162-62-57-252.mail.qq.com (out162-62-57-252.mail.qq.com [162.62.57.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 827A11684DE for ; Tue, 27 Sep 2022 05:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1664283309; bh=42xfWSmhmY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jNI0MQUkyXevvH+uknqvq56e3HHtyQBLXbuMcfc1gV0vfJ54Evfr1RnMDmpf YS0BOVaoUtBQfEWAXxn/bt7BeNcklG+7hsbC92U8+hZqgfnxKXTf9sWoybUp/AZQZ8sIHBBbxWVu8 uqzRA/WPiOBCq7HhqzqdPk0T4TjHwg0jQynq1KSR12qA908dM/obgydk2ESkjgAumKXMK0Be+1EqF 4hndg/xGI44w3/4MMt X-HAS-ATTACH: no X-QQ-BUSINESS-ORIGIN: 2 X-Originating-IP: 111.47.122.156 X-QQ-STYLE: X-QQ-mid: webmail740t1664283308t8147702 From: "=?ISO-8859-1?B?WGlhb2tlIFdhbmc=?=" To: "=?ISO-8859-1?B?RGFuIENhcnBlbnRlcg==?=" Cc: "=?ISO-8859-1?B?TGFycnkuRmluZ2Vy?=" , "=?ISO-8859-1?B?Zmxvcmlhbi5jLnNjaGlsaGFiZWw=?=" , "=?ISO-8859-1?B?Z3JlZ2to?=" , "=?ISO-8859-1?B?bGludXgtc3RhZ2luZw==?=" , "=?ISO-8859-1?B?bGludXgta2VybmVs?=" Subject: Re: [PATCH v3] staging: rtl8712: fix potential memory leak in _r8712_init_xmit_priv() Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: base64 Date: Tue, 27 Sep 2022 20:55:08 +0800 X-Priority: 3 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-QQ-Mailer: QQMail 2.x X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, FROM_EXCESS_BASE64,HELO_DYNAMIC_IPADDR,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS 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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