Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2051674pxb; Sun, 10 Jan 2021 22:22:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVavBysJ+ENAlyxLZeXO5B5OdRRMTjE0svBsA015IwSmd2IvVp5GrGaEUCEDk6bhneEyrO X-Received: by 2002:a17:906:5495:: with SMTP id r21mr9817746ejo.59.1610346124437; Sun, 10 Jan 2021 22:22:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610346124; cv=none; d=google.com; s=arc-20160816; b=ih6Yok9L21twwrwU/oFiDmyHS7w4x1bNhlKu6rpUmOccEfTYC5uA22rlZtzh13LZGW Q2Cr4mdrsEGhTTGVqUFXXLN8A1YI15y00jOSNvzV7QPIy1WFqctx7zYbXzoLz7iCl60a Tfg7MuGSvr0EoPL5MnlDBzkCtxoiNvkEGPkoMgJ4b9ZIaYDbxLzeonCXigPI+WgbYGIv kB/BhTAMDQkh0wTRaIpwCUvocF8yeTnIjYKi/J6Evzb7WPRb78zJ9uGrJCDWsTWG3GEY ncpFxMhRkKCLEf0EFjFFeTpFTLOWtiUN8/KPKJAqdYNq3wkB99Qqaz07YhRg+K4UqCkQ Lzsw== 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=hbUjx36G0lGh66Y/uyRkKQdmOZUnPTwRubcK5li375o=; b=EjQBUYELVcOK9mGA1MlKh4gbF9EOCx9hjJGiTKlk5MGY9gYvChiqAbgiekq7vtcjyc FY0T2Wgw8tOY/DPwOh+HFhYcrj34hdGQRKvBjzgb3pQJPyrrwyEB4O41ztmJXorAdC2E THw54OEzfJ3agKoxxL05n08QFSPixUK65j0nXSNOXwa2EMKNWMhuvJz9HbhQiSZxCaN7 z+hbMQNuBv3/T+Gb+3C5xd9h1v4wiu9F9TBqT9Bth3SDpF/Nl+VhjCSp8Eh/DWhj3lxF hnqHSUjIg2rXYSbrBayXL1sxEk/fM6Qqc5NroA1gLr4TFFyiR/JThYdC3Ir+WMfpKCfp jNog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tUWFAFTr; 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 a11si6006879eje.119.2021.01.10.22.21.36; Sun, 10 Jan 2021 22:22:04 -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=tUWFAFTr; 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 S1726694AbhAKGUC (ORCPT + 99 others); Mon, 11 Jan 2021 01:20:02 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:46254 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726008AbhAKGUB (ORCPT ); Mon, 11 Jan 2021 01:20:01 -0500 X-UUID: 94bd96e1fd7348f9bba859224c96e3f8-20210111 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=hbUjx36G0lGh66Y/uyRkKQdmOZUnPTwRubcK5li375o=; b=tUWFAFTrtAgfEAHdnobjcdKW9a2Fsn5m+oS7yx9vBMthTRBwADrqfb2tD+86cng/3wi66ySFWewVCAFqA/ExonB8RaxQ3bgXHTJ96DeOm+UBHlkKKnVij7dX440D5vxY7r3Tjyp1QcuR4EhCvdu5szgYhdiM4gp4Rw+4z7RF8BA=; X-UUID: 94bd96e1fd7348f9bba859224c96e3f8-20210111 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.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 577770196; Mon, 11 Jan 2021 14:19:15 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 11 Jan 2021 14:19:13 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 11 Jan 2021 14:19:14 +0800 Message-ID: <1610345954.4985.7.camel@mtksdccf07> Subject: Re: [PATCH] mac80211: fix incorrect strlen of .write in debugfs From: Shayne Chen To: Johannes Berg CC: linux-wireless , Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , Felix Fietkau , Lorenzo Bianconi , Ryder Lee , linux-mediatek , Sujuan Chen Date: Mon, 11 Jan 2021 14:19:14 +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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