Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1305521ybt; Tue, 7 Jul 2020 12:21:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBYZ3h/Ic1zWCHr7CwmPZ0cQBApPaiseCO+onD++R8DKdxeK9KAOZ1wKXBJU+oQ11VEbpz X-Received: by 2002:a05:6402:1a42:: with SMTP id bf2mr55023156edb.292.1594149693060; Tue, 07 Jul 2020 12:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594149693; cv=none; d=google.com; s=arc-20160816; b=cHZedMpnuvzOp9aNyuZQpfgeh8wBE1XQmmJCAqNaCVpbekk/xvndA8hMwJTuYfBu1t SNC7KC+gwma9yb+66LFkfQC4dBNb0Y7zU9T02ouDKwe2L8ASgn5oaiET2G+nruZnfjsX jdRGNkeabgiap6REjpviWSu0pVXMHzBVlDDaTUhgeOLUiRtQZvUnmZ+WzRItgURTOqQW c649U8liSpuku55bua1HoHSkbK9g0AZsoTf5kc+oaqVa5JCnOSc+8kqwtWvFxkqolbOf Ch+PvOHi/Ux82xQnuoPlR0AKgAsD/f8hc2q+Nf4+7+CoAt5o1UoFUGeaJVSVj7mhuVre I1hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2sll/Y485e+JNsrlD/BIKIwTJsEpJPT8Kwje84O+F/g=; b=u2PGtPyIv8LMFf5Tuo8zo7baqyiK0YCqnq7M6RWmb4UtceqSmu0+PTCIEUkxUnMtTp lUQrpls+9cOa+ZFkHrzacC0Q4INJV/yE2SyMTUQ87AdDRn5b4dLwLwHY0zzAe02vqAHk qHbBl9E9hJsgcMgrL5dZcUL/z29CK+kIUZF/CbA4WKBu++0NI9UQ6r80T2kL1VepjuMT Ld5SoUbPFFCJcsZdlJJzw/EpOfN/7396a+s8yB0QgapneLoEfoWacxoRvn1jlaJpuStD 37zVvlJe5ElXBTs30+Zk6rEVfGBgFCKxDQWNiufQ08CxGhmQTLuPZxYRGjc4gqPHh1+c EJ7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="XVo/B7sn"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si15468820edq.493.2020.07.07.12.21.08; Tue, 07 Jul 2020 12:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="XVo/B7sn"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728866AbgGGTRB (ORCPT + 99 others); Tue, 7 Jul 2020 15:17:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40254 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728858AbgGGTRB (ORCPT ); Tue, 7 Jul 2020 15:17:01 -0400 X-UUID: f330164182ec492bb7d2d01260bf9607-20200708 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=2sll/Y485e+JNsrlD/BIKIwTJsEpJPT8Kwje84O+F/g=; b=XVo/B7sna3yn2Bnjv2ZnEAx+SuxoQHSNUJVBLUynozxX0xfyiIvpcQM6XP9lJGzwrAZ+6s+pgwbgTbj8q6X/0Uz99AfU3Ihpy5thGXdpPiDL8GskpteNrCpgr0aLcTk00E8sD26x/ZZo1oeDXiJcAmnz3BNcD0D1FUpTrewaOEw=; X-UUID: f330164182ec492bb7d2d01260bf9607-20200708 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 928126492; Wed, 08 Jul 2020 03:16:57 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Jul 2020 03:16:45 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Jul 2020 03:16:46 +0800 From: To: , CC: , , , Subject: [PATCH v2 1/3] mt76: mt7663u: fix memory leak in set key Date: Wed, 8 Jul 2020 03:16:46 +0800 Message-ID: <57b81f8efe7e767616a0d5957728756cbfdfa235.1594148548.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org RnJvbTogU2VhbiBXYW5nIDxzZWFuLndhbmdAbWVkaWF0ZWsuY29tPg0KDQpGaXggbWVtb3J5IGxl YWsgaW4gc2V0IGtleS4NCg0KdjEgLT4gdjI6DQoJLSByZW1vdmUgdW5uZWVkZWQga2ZyZWUNCg0K Rml4ZXM6IGViOTljYzk1YzNiNiAoIm10NzY6IG10NzYxNTogaW50cm9kdWNlIG10NzY2M3Ugc3Vw cG9ydCIpDQpTaWduZWQtb2ZmLWJ5OiBTZWFuIFdhbmcgPHNlYW4ud2FuZ0BtZWRpYXRlay5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