Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1451618ybt; Sat, 11 Jul 2020 10:30:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIhkehqrH8Ma3K5yhcgtpiChJXTkRTfcOIRYeV8PC8K4sDPZD7//u98E7fF70hmLovy3Ip X-Received: by 2002:a17:906:f94c:: with SMTP id ld12mr65613548ejb.426.1594488604788; Sat, 11 Jul 2020 10:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594488604; cv=none; d=google.com; s=arc-20160816; b=MqVxgHCwMDl6BjW9LSnQSDrbkQ4DmyfbIOtx3w2ut8/cqheRaTjI6rF3+y0BpOCFgD n5u2l2xHewHXtWp2WPV9GDZt16vRIIXkVpSb7fINkB7TGl7JgrH7yVI40/xZvqzyDJQv BY4CKk3sxYiXUYOstRebZaGTXo5pd/k7bhod797qh1cotS9duljpE27XQz08JyrQoHMW 1oTLKidzkvE+jHnohsWGxhnW6spO1HSTuHF/+sGymPD8dR11eiPPUGzRiL128EIi27Yv o1D3L8yPdIVkeqKmLeuX4XPsPT7L5+yJsRrrECsJfMOprNwhYLMmcQfXxEAub+cccJSY NPqg== 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=KsPZrYh83BKh7NcfY83O8cMZ2ziWNuHaOaDclSXHB/Y=; b=jntQ6EB5LyM21oGT/AtVMOIjr3XV/i94ThuwmvHdHpQYxMp4njH3YcAr3xduXMm/6n d2hH9czRaFZTp0F9QsNFLHy3uJpaix7/eFLY00GpU6HZw7SgxF7sWw74B6cOQ4wqZnUp 83rRG3NYpuuI1+i2ougDKhs4gE3yruyru7+g3cr9BQ4W0CD9sTMLgbtYajbc3rpiEOp+ E5GWe0YPlTPo7AbV21GPKeF58piCrkF9wnpoW+dqWgIZZFXAVnSy+Big2m6gg6VKPPfF WoBIKwSZ27YGfj4aPfT6kdkTla6pzJsOasCkEr8sLMW6DIgghSIBxsnzL9TUmgzqTBYI FuXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FxOCxey2; 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 t22si6628258edy.39.2020.07.11.10.29.22; Sat, 11 Jul 2020 10:30:04 -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=FxOCxey2; 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 S1728672AbgGKRZ7 (ORCPT + 99 others); Sat, 11 Jul 2020 13:25:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24386 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728507AbgGKRZ7 (ORCPT ); Sat, 11 Jul 2020 13:25:59 -0400 X-UUID: b0c6d6c996fd4e42a3b9fd63c9ad292f-20200712 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=KsPZrYh83BKh7NcfY83O8cMZ2ziWNuHaOaDclSXHB/Y=; b=FxOCxey2I4SzYJKmx8sRZuPR2qFnDRjNLnxrENsDc58fKydoHzkRQSL74kQQOjLsp8K24l0eOI4wJHGrU8OvAXJXZkAPxQD+j0oQzhfbJrN/MTGyje+bkyBuXovcJM9zo66naq4gi3D1iDE9KLPnspgGp94KZ9tXp6Intxw8BKM=; X-UUID: b0c6d6c996fd4e42a3b9fd63c9ad292f-20200712 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 998760287; Sun, 12 Jul 2020 01:25:55 +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; Sun, 12 Jul 2020 01:25:49 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 12 Jul 2020 01:25:49 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Evelyn Tsai , Sean Wang , , , Ryder Lee Subject: [PATCH] mt76: mt7915: fix potential memory leak in mcu message handler Date: Sun, 12 Jul 2020 01:25:51 +0800 Message-ID: <4cced050b9b3dc4d1da2a15e38738ba80a30dac0.1594487923.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: D7429033F07453C9D9C29E3419561C1A46274DDF38E6A64AE525150F343466A32000: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 Rml4IHBvdGVudGlhbCBtZW1vcnkgbGVhayBpbiBtY3UgbWVzc2FnZSBoYW5kbGVyIG9uIGVycm9y IGNvbmRpdGlvbi4NCg0KRml4ZXM6IGM2YjAwMmJjZGZhNiAoIm10NzY6IGFkZCBtYWM4MDIxMSBk cml2ZXIgZm9yIE1UNzkxNSBQQ0llLWJh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