Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1303705ybt; Tue, 7 Jul 2020 12:18:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuRk+fHrjywStAdSMcjpELEjT25+nz9KmhKB1NvueBUouv5c1HgEV1TYDIJUwUj1RZBVyF X-Received: by 2002:a17:906:a449:: with SMTP id cb9mr28926825ejb.115.1594149529467; Tue, 07 Jul 2020 12:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594149529; cv=none; d=google.com; s=arc-20160816; b=qMqkq80m2+sfuM3y5508lCRZ/imNB9anjKmLmIeRyzl0VvmGJttw+dWwUF4qKIVWO5 PvGwzSs7AYeKAamp56mNRT+1xUxHnmWetN2NNgDL/iHhUfhOtckajG1AP2n7/fnhgBVU cvLG7IS3CsZNsnU3C5zYHHkOlVwnseiNegGhP/f+2BG5+IyH/ezzFRWbH8OwF+S1nmEX +wZ46hBNRdWKpFG3BqeE8NDsoNHH9uUm0kaPfKAye4uwHjavXmSubSztIa28YgVOOYuZ XyPahxcEpbGtLSI+273H7r77v15xHcbzWSscqZEDijetHePzDQbR9zHkY/yQY6aS0S0e jEyQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6WwLQZSskyqVpi7nnoZklS0XEE0b/m647iz/70QPzhA=; b=FEJ9P31Xmz2VbCgyZX9tQQvLyLibrtkic0Nf8mXB1m/UJzgmwtAKt9EL3YwTBEMcdn azqkguAvRJ4vh80r4gWm5eJ3BGT1mGc8CiZ3PW2k/htlTwaNzveVwKMMpVqzWOeCf7N8 Am7cL1dwXWFWto5ysBombcpKhJHSpkhzfv34Kfc8ujy986dD526EuJ87eF1ksWweLwFU 8FfUHskuXoI+ZgV1PRjJULiwCHPVAhwNQiZex0DtQhQF9j0CzvLNEQNC+0QPkfPJXz/h hb6MTi9H8vHAAnXSFzh9Geka97Oi81J1p0xXliPwwsh+pxfiBJCkNUTwqfqqrweVOBwE aeiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Al1fLAqM; 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 c17si16070550edr.237.2020.07.07.12.18.10; Tue, 07 Jul 2020 12:18:49 -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=Al1fLAqM; 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 S1728855AbgGGTQ6 (ORCPT + 99 others); Tue, 7 Jul 2020 15:16:58 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:16610 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728840AbgGGTQ5 (ORCPT ); Tue, 7 Jul 2020 15:16:57 -0400 X-UUID: 581ff3ed9db14024bc379809d4b02727-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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=6WwLQZSskyqVpi7nnoZklS0XEE0b/m647iz/70QPzhA=; b=Al1fLAqMtxgm9Z4FlGhArPx2AeOHiMhU7dNhq3NmZLuIlN0ZiRz25Xt8yjgvXeEtyw+a6u2I08x8vvGURmYb7SHO9J8qTEIUqxSieUpZF0ixwRrAg7fCSy0AR4A537N2UDJpZkJ/HfZujirydB0p+S3+XkDoEWKoEHu7UUy2y3o=; X-UUID: 581ff3ed9db14024bc379809d4b02727-20200708 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 588844300; Wed, 08 Jul 2020 03:16:52 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) 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 2/3] mt76: mt7663u: fix potential memory leak in mcu message handler Date: Wed, 8 Jul 2020 03:16:47 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <57b81f8efe7e767616a0d5957728756cbfdfa235.1594148548.git.sean.wang@mediatek.com> References: <57b81f8efe7e767616a0d5957728756cbfdfa235.1594148548.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: DFAE3EC087A09961308A87017844A1E472331BF8FCC4033435F92BDFEFB911A42000:8 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 RnJvbTogU2VhbiBXYW5nIDxzZWFuLndhbmdAbWVkaWF0ZWsuY29tPg0KDQpGaXggcG90ZW50aWFs IG1lbW9yeSBsZWFrIGluIG1jdSBtZXNzYWdlIGhhbmRsZXIgb24gZXJyb3IgY29uZGl0aW9uLg0K DQp2MSAtPiB2MjoNCgkt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