Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1746083pxf; Fri, 26 Mar 2021 13:59:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/hTGAtrzXbqki6poyIMtbzSgwzAKieEpsDkASFCA7w56Cw70Imk7lylzNsWyxNmzFHouE X-Received: by 2002:a17:906:4a05:: with SMTP id w5mr17116316eju.526.1616792349135; Fri, 26 Mar 2021 13:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616792349; cv=none; d=google.com; s=arc-20160816; b=DTBTFKFneSpD8WrZNh2u67+HtyEAGZhKWU+gLbYfWP6HsPxjlfQdD4IH2BtNZtVDN9 eUvvFmuUyyoSHC90mpLFc474RVnLrrYQgHavIg9Bjecq0hJ6AUKAMeO4UiKAJztLvMW4 dvWKyo7QRpxDXAR3rb+IO6em9l89ajaJEkvuboxVOg5lDjBkbCJPlPY59sxaO9ixeNjj odtZnk99DgQSydYRZzm51WIERLBMXEHRVawcgNTdCw53OZwY1tKjqVvOaDxijD/aSIWN UhL/KFdUm6fi6CvavJvNPhxQJdNFk8cVkvIcaTqZJ8fkCt/baRjzJFMb4tezLmM2FS6U Oysw== 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 :message-id:date:subject:to:from:dkim-signature; bh=jhKzENU1PLNAjhiRYdLQjFD/7nBHDkHTeUOB3DFS3Pk=; b=zBbbYo0/wXErsKl1dEiw8/nZRXOhHZmX7fK76YItTSdaF8QjSAAp9dFVuSxv0J8+kP DbLl0LhsBe6HR2VPdboFl9Q29CilUzeyenmF/HY9YUPCnGIcpHiav5XRZBr66RbdT6h5 Ddjlw2tyc64AjevtIEfB/f93fdshH6bgUnnMVDXRedadYDJZ9P7tI0o17RVHcS18B+QW 8tFim4aLyVt50y32ut4dqDIijhW7K6NMymPkEscQPiCVSxEuQihIpZ9M/rfuPNqF9Mkf 4KFPlESVOI/d0qu0UY6hYvTFkO4+1KZytuDuEqQ7wjWH+xThPWh5yAB34KL6kRxxPsHE mmig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=BsjATYtN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si7495733eds.133.2021.03.26.13.58.46; Fri, 26 Mar 2021 13:59:09 -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=fail header.i=@nbd.name header.s=20160729 header.b=BsjATYtN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbhCZUzN (ORCPT + 99 others); Fri, 26 Mar 2021 16:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbhCZUzK (ORCPT ); Fri, 26 Mar 2021 16:55:10 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34F39C0613B2 for ; Fri, 26 Mar 2021 13:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=jhKzENU1PLNAjhiRYdLQjFD/7nBHDkHTeUOB3DFS3Pk=; b=BsjATYtNf/Xdf6hMXrhTg1jS4f +VdTKPGwcN4L8WJ9OY6LOaT28vq1ljSVaAlP0zk/HjsfzoQ3aIdFDImvY5y02GKMcW2yicgqMqMTc cGDjZIoEG3TayHoPOod7zLZwcmQqgpI2nrOT8izoeWVN2YgGrWUspEdkxSALLq3zeFhY=; Received: from p4ff13c8d.dip0.t-ipconnect.de ([79.241.60.141] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lPtU3-0001b7-Bj for linux-wireless@vger.kernel.org; Fri, 26 Mar 2021 21:55:07 +0100 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 1/3] mt76: mt7615: 0-terminate firmware log messages Date: Fri, 26 Mar 2021 21:55:03 +0100 Message-Id: <20210326205505.74383-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Avoid including garbage from previous rx data in the printk messages Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index e565fc770a0f..0b8f5dc6b121 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -423,6 +423,7 @@ mt7615_mcu_rx_log_message(struct mt7615_dev *dev, struct sk_buff *skb) break; } + skb->data[skb->len] = 0; wiphy_info(mt76_hw(dev)->wiphy, "%s: %s", type, data); } -- 2.30.1