[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220106002952.25883-1-brian.silverman@bluerivertech.com>
Date: Wed, 5 Jan 2022 16:29:50 -0800
From: Brian Silverman <brian.silverman@...erivertech.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Brian Silverman <bsilver16384@...il.com>,
Brian Silverman <brian.silverman@...erivertech.com>,
Wolfgang Grandegger <wg@...ndegger.com>,
Marc Kleine-Budde <mkl@...gutronix.de>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Vincent Mailhol <mailhol.vincent@...adoo.fr>,
linux-can@...r.kernel.org (open list:CAN NETWORK DRIVERS),
netdev@...r.kernel.org (open list:NETWORKING DRIVERS),
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH] can: gs_usb: Zero-initialize flags
No information is deliberately sent here in host->device communications,
but the open-source candleLight firmware echoes it back, which can
result in the GS_CAN_FLAG_OVERFLOW flag being set and generating
spurious ERRORFRAMEs.
Signed-off-by: Brian Silverman <brian.silverman@...erivertech.com>
---
drivers/net/can/usb/gs_usb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c
index 1b400de00f51..cc4ad8d59bd7 100644
--- a/drivers/net/can/usb/gs_usb.c
+++ b/drivers/net/can/usb/gs_usb.c
@@ -507,6 +507,7 @@ static netdev_tx_t gs_can_start_xmit(struct sk_buff *skb,
hf->echo_id = idx;
hf->channel = dev->channel;
+ hf->flags = 0;
cf = (struct can_frame *)skb->data;
base-commit: d2f38a3c6507b2520101f9a3807ed98f1bdc545a
--
2.20.1
Powered by blists - more mailing lists