Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3283828ybt; Mon, 29 Jun 2020 21:38:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfgf+R9ekRvyOJAYFLJiOcg/NJ0vst8HiubZ4jEfAki+xvLkQgOWdHw9qInkvrT8ytBojc X-Received: by 2002:a17:906:7686:: with SMTP id o6mr17400478ejm.326.1593491933362; Mon, 29 Jun 2020 21:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593491933; cv=none; d=google.com; s=arc-20160816; b=aggp2aGvj+ezkbARgRbFdwvHTMElZk1zm8LafALtRD6V8RZMe9QUKpULP4UOGoMHLo 4/w/GCCR9gB9+QzyQt9EX9rpp4KjtpOFRW3L5LKyhfiVKMVwcgNCHhJqrcLt6mxL/CK/ fLS1mtn6UAwb2/24d4p4DW+AyPL0H/SchKdpgkt5GLLDlhqxITUcb5rk0h6QKhdVZXry BNrXTKijP+paud17y+7GGfl71Yb31th8l9pIyt4jESntujP8xnDdKWxvT9l4mA1vVZpa uubPoppkx71I0Q/vpnOES89nxqg71LTyVV7EG1ft5mbfEn8UsT28Td+7x8KCchezr4r6 YpFg== 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=sLhvuF8ycBP/EBmo222dGA/PKnzAApSuMpmdqeHpmNc=; b=ZbSpGRshNg4SEn18VUHELpopVWJ6VzBmhMx+A4fabn1lXy3opYKvBKwzoEB7/UxYcT GlXUZReuh42fDkkdygRuQlArCiHAT/I0kol1NH6mMCphZBYOOrXOOwe1P9cy9wSm4GHy sZALjSPfqLJY55DMa5zFsJiZdmlj7HxRYnTl8YiVDJvIFsHdZCreQPGG/lqlBEVhSJ8k 9um7QVHsT3Cgx/kTz/jiyatimqIDC7mLThOz1/LUkESbWLrQWqp9F6YKZVp5PMNkDZBU q9rh400+XIB1M8ZhIkrcKxTWM7I2dsobGExd+5qaXVYjFFSL5TNfBGg4eQj4AMsPvn8N ocaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ucTjWca5; 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 bs10si969920edb.548.2020.06.29.21.38.15; Mon, 29 Jun 2020 21:38:53 -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=ucTjWca5; 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 S1727948AbgF3EiA (ORCPT + 99 others); Tue, 30 Jun 2020 00:38:00 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:7366 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726710AbgF3Eh7 (ORCPT ); Tue, 30 Jun 2020 00:37:59 -0400 X-UUID: 7a7beb4e41294a04b489af7aee3879f4-20200630 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=sLhvuF8ycBP/EBmo222dGA/PKnzAApSuMpmdqeHpmNc=; b=ucTjWca50y+ryFB9qApPXn4mvNS6FJFvlH06eGSh+pPf3nWdHMN2C8fqLrYcL3tId3X13sMP/nv7mkATEukPivNBNnEamcyPLbYwijviMfKQR6XAXJDGbizIVqIc7YFZA4SSqZiIlgJhJAvyvMAJUPm4ynH2sQ0VEKXqHwE59Y8=; X-UUID: 7a7beb4e41294a04b489af7aee3879f4-20200630 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 56072673; Tue, 30 Jun 2020 12:37:54 +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; Tue, 30 Jun 2020 12:37:52 +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; Tue, 30 Jun 2020 12:37:54 +0800 From: To: , CC: , , , Subject: [PATCH 1/3] mt76: mt7663u: fix memory leak in set key Date: Tue, 30 Jun 2020 12:37:49 +0800 Message-ID: <5e8786d9cf0ccd09dd9c13c24c48ce441afbf0ff.1593491298.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 YWsgaW4gc2V0IGtleS4NCg0KRml4ZXM6IGViOTljYzk1YzNiNiAoIm10NzY6IG10NzYxNTogaW50 cm9kdWNlIG10NzY2M3Ugc3VwcG9ydCIpDQpTaWduZWQtb2ZmLWJ5OiBTZWFuIFdhbmcgPHNlYW4u d2FuZ0BtZWRpYXRlay5jb20+DQotLS0NCiAuLi4vbmV0L3dpcmVsZXNzL21lZGlhdGVrL210NzYv bXQ3NjE1L3VzYi5j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