Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1744393pxf; Fri, 26 Mar 2021 13:56:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztU6CH7Al8tfm+6W7P/XWRLPKNa5v43EoirpOffjtpLJIO8jHOXVLsWDTjfDKMY/u2349o X-Received: by 2002:aa7:c7da:: with SMTP id o26mr17493622eds.244.1616792177001; Fri, 26 Mar 2021 13:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616792176; cv=none; d=google.com; s=arc-20160816; b=HN0JoAi4Ah+WJ2zWkxiUxEMrbmGDx/iXuqJSW2iKaMFI+TBIxGlFi/dvWTSW4GqouY YDMH634fsz36bdSKB5HsF6YnaGzAVNUoF5/+JSrmpf3hAPiGzipoI+t/PSkYTkPrxxa4 9KXfv9a0K+UifGQTDJ/KAZ+WtRKaDAVy6MXlnvMs//Qzq3JmzRe4h6MnBIPjCyoeYE+o r8z4IcCRpsquD3AVIMtsToJWm5N6q1F9NdFj0eNdHJY9IptQ7x0njx2W0g9t66MCFSDL WFPS+60ydwtm0Cql8vnV0NCJHoSQefGDIJV8brNbxvZqtKOHFwX6vVcy6mQ+YvRuPUNv K71A== 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:message-id:date:subject:to:from :dkim-signature; bh=x9cmCsO1uImiXvM9RAGzUQu9DDYzzvh9206/GlpUpvE=; b=U0cPbX1x7GsyYHLKpQfnGdPfR3XVGW3JxDalI8gOdYSQ8NWAlJrI1AmRZO+wnklU0m HC3zi2eCo2SeSIUiy80Dxx9lXaZyqUEEAY4h6WpZWyNxvU/LUlTlLsBOi6zEq3EJVxdA awnH0jKVrgOJDF8iHUBuKowc3Uvh/W3zqzs4JMsoNx/ykTIUjzykhcH+65B9Qq/C+4iE j0cMdLq+2PwJSajaMPrKvoyHFoP4Q7Hfr95YX2KOiQMiComsls0Vmn6/IsWArhpX0eis +gceTWXGksL8Fz2YpdtHv+tTExPHlnSHoWHLRYaSumbdlqmmrO4VKzWatFKSxskwsJgv mQkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=IBdk5Bx+; 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.55.46; Fri, 26 Mar 2021 13:56:16 -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=IBdk5Bx+; 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 S230221AbhCZUzM (ORCPT + 99 others); Fri, 26 Mar 2021 16:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbhCZUzK (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 2E1D4C0613B1 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:References:In-Reply-To: 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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=x9cmCsO1uImiXvM9RAGzUQu9DDYzzvh9206/GlpUpvE=; b=IBdk5Bx+dhuYpzBiaOCjj4MWnR ctC9pmSe5JzHbyaLJyzt4pf5AEomXiIRxD7F/BDsaMmmgK14sAtgQnS+z5kgkdc2U/d7oD4U01llC IUwPK+6w7lVCJTZOvKPfxMRMwhQE3b0IqAd3T9JtfVzfjjH96gkucVAdBRxOk/JrVdzo=; 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-IW 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 2/3] mt76: mt7915: 0-terminate firmware log messages Date: Fri, 26 Mar 2021 21:55:04 +0100 Message-Id: <20210326205505.74383-2-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210326205505.74383-1-nbd@nbd.name> References: <20210326205505.74383-1-nbd@nbd.name> 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/mt7915/mcu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c index 9d0911ac1d90..138f55d9fc02 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -521,6 +521,7 @@ mt7915_mcu_rx_log_message(struct mt7915_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