Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp77049pxv; Fri, 30 Jul 2021 19:18:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5Ne75Dxd0pJxF+Wh7FiPrUnfkdIPgpGZfF6Jg1KhTa0Ls67viWfmqaBd/QobczE2Ezxv3 X-Received: by 2002:aa7:de04:: with SMTP id h4mr6759920edv.183.1627697928174; Fri, 30 Jul 2021 19:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627697928; cv=none; d=google.com; s=arc-20160816; b=OlNA2NDbv6opp+MqGQTp6vFlJrjwdzlKjm50bUafUV0CBtG6HsYByly0exsIXE5+mc 5oDLChqSQxy1tRFpbW+EhYuHmP2vKiqO0eBMejx6hVb/b38aaUW5W9QD96hYs5oV+tKE JlkpYnFsc9QySb8ksUVA/5Jr4/9J2/GN3rx51SyQWhdttf2USqCYSxtu8O5ZZtQXkERo aYiVxwuDcNo0T4ZERKjV5Pk3OI8AyAoftUl86or9pauvDfVPdMLhVc2UjP1Ui/nlyZP0 TEU0POM4TfPochnIPozhdIh4mCGq4c1qHQ9U177V8MSPFfSvr4tzhSn2E5o99ngoHgW3 YoVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Md7xTBzePat2l8RlwCsx41zRRb+kYz/tH0FhsWivTEQ=; b=tE8/Ubmt3dAyulypVf4aGp56pIagyin4AkCyIfijuIp+N4W846MtbsUmVmBqhRfCdM iM4JTGTqtrm0N9deHL1kYmHdDt6qOu2KF2CarlS0ln7KeZSVX2JUhACW6FM+H1k2s8lp Wq6Lz2JytpiCHj6CY0w3ofWRLysfeehLghYkgjqTmjcyrMaxAcgB6UKAb3BRlzKk9gv2 mdu3t59DOR8GzqAsyau9Jofh7LUfgUvzxtKenfXAJP7L6drqpk0GIqY2dw6tu36Z9OM6 Jh6axNkhuWN6VGQ21jY04USnhFZ7CCZRtLvWIib7AJwV9eeKAx0a45pQ+AGjfc76TMzK g65A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 t20si3273849ejx.293.2021.07.30.19.18.18; Fri, 30 Jul 2021 19:18:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236065AbhGaCRm (ORCPT + 99 others); Fri, 30 Jul 2021 22:17:42 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:60880 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235339AbhGaCRm (ORCPT ); Fri, 30 Jul 2021 22:17:42 -0400 X-UUID: ae5270d9bf3b425cbe4a738a4259e503-20210731 X-UUID: ae5270d9bf3b425cbe4a738a4259e503-20210731 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1736179686; Sat, 31 Jul 2021 10:17:32 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 31 Jul 2021 10:17:31 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 31 Jul 2021 10:17:31 +0800 From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , , , Ryder Lee Subject: [PATCH v4 2/2] mt76: mt7615: fix hwmon temp sensor mem use-after-free Date: Sat, 31 Jul 2021 10:17:28 +0800 Message-ID: <48d120ce3711ee50aebf4f75c959a480b2267cf4.1627696765.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <9f5b0cf6c4296d3a9e78a95516cf26d1db4baba9.1627696765.git.ryder.lee@mediatek.com> References: <9f5b0cf6c4296d3a9e78a95516cf26d1db4baba9.1627696765.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Without this change, garbage is seen in the hwmon name and sensors output for mt7615 is garbled. Fixes: 109e505ad944 (mt76: mt7615: add thermal sensor device support) Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index 05235a60d413..6e8feceb1ff2 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -54,7 +54,7 @@ int mt7615_thermal_init(struct mt7615_dev *dev) return 0; hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, - wiphy_name(wiphy), dev, + KBUILD_MODNAME, dev, mt7615_hwmon_groups); if (IS_ERR(hwmon)) return PTR_ERR(hwmon); -- 2.29.2