Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp704145pxb; Fri, 8 Jan 2021 16:27:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJyP2CWOBs0hQYU9uUTv9ffnsX7E2kDpacGpmz5NMkc0WB+bvOh2S6yY4MvZ/Hau1/hEjJ X-Received: by 2002:a17:906:29c2:: with SMTP id y2mr4351231eje.518.1610152050808; Fri, 08 Jan 2021 16:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610152050; cv=none; d=google.com; s=arc-20160816; b=W01/kUxaecEkiQ4lGc1cvcdi7zJpsDTLFZQNT568QOhH9crm/i48EmOdzzRPboVxfH GJZlt1EfwFEJmiImDmqQuIUnNv9Jbxjg0Fxb83yrMcqI7X/jouXOqtr/s4lnV3lzBhps Mj+O0diI0/9xEejPgbb2Ow7s3O+2Xqe6oYxUMrZy2WAfva20SpBg7y9olfI78C6pjcHu bR4zwIe6j7SBpdnErfuIhkqhf6CxCI7pW5n9N8G8RCIbvURK5RK65TNoNTXmh7Q9a3eM tJ9ez/PB4aHpwrRsPgQfy7SpB1uYJ6xY1Vz2+fp3flQXJ97Dl84pcfZM57lCAfqdRRZD v6Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=7CYUlKecezZ1BJCyWACsMHG9HSdAtzLwoRJDZJLvlmg=; b=MbZDe5VIwefu1L4voiumjciBSfMS6jo9aY19Fam3vfYm/iRC7+v7j+ngvJBAYLYAvp vYDPxXeOH+RCbtOVqasIlWp/PQwdKlFA5SIAgLzLC8UPH4fK4vsxdJcvaST52zDmfpfS Tc5GQa3NrdQVrRWlHizCPySQW7OtG6Ce9Fic9ZilGs5isaMoELFDEsQHWonP/X48OmRl 92TKD/CySWvdDafbJnPf0OsFkOaVFrmpVsndp0e8z35/+MwGIGLsyNJaAHmRsy6hiUrg jsnsLv+rHTd4s001+tYXA+wFANHmoHIdIHWreLFqrR2nwS4u4OLPI6iKneuoYCxbXuvE +2RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EE1lsKQz; 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 v1si4277825edl.62.2021.01.08.16.27.04; Fri, 08 Jan 2021 16:27:30 -0800 (PST) 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=EE1lsKQz; 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 S1725905AbhAIAXD (ORCPT + 99 others); Fri, 8 Jan 2021 19:23:03 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:34458 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725872AbhAIAXD (ORCPT ); Fri, 8 Jan 2021 19:23:03 -0500 X-UUID: 2087cc9e142449a1a487af29da6a1889-20210109 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=7CYUlKecezZ1BJCyWACsMHG9HSdAtzLwoRJDZJLvlmg=; b=EE1lsKQzli67viq9PmMnk8mcQizuxp5/LSQ6t0dhVoH2AHSULATmxaaZI66AsF9lq+7yVIoVOvY37OG71mk1zwR1+nPohCTa152KZfBmPJgSD7wnn9nJjLW+YyV7f4Uz0R1G7uo+2CQsiWlgALvimfvgWUHJWcRHwAE76AdmGUE=; X-UUID: 2087cc9e142449a1a487af29da6a1889-20210109 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 693531631; Sat, 09 Jan 2021 08:22:16 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 9 Jan 2021 08:22:13 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 9 Jan 2021 08:22:13 +0800 Message-ID: <1610151733.9343.3.camel@mtkswgap22> Subject: Re: [PATCH] mac80211: fix incorrect strlen of .write in debugfs From: Ryder Lee To: Johannes Berg CC: Shayne Chen , linux-wireless , Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , linux-mediatek , Sujuan Chen , Lorenzo Bianconi , Felix Fietkau Date: Sat, 9 Jan 2021 08:22:13 +0800 In-Reply-To: <0efec65815ff9e26b3da69cb35d503a90086760c.camel@sipsolutions.net> References: <20210108105643.10834-1-shayne.chen@mediatek.com> <0efec65815ff9e26b3da69cb35d503a90086760c.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org T24gRnJpLCAyMDIxLTAxLTA4IGF0IDIxOjAyICswMTAwLCBKb2hhbm5lcyBCZXJnIHdyb3RlOg0K PiBUaGlzIGxvb2tzI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