Skip to contentSkip to conversation

can: gs_usb: Zero-initialize flags

PATCH In review Brian Silverman 3 participants 6 messages Jan 6, 2022 – Jan 10, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/can/usb/gs_usb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/can/usb/gs_usb.c +1 -0
index 1b400de00f51..cc4ad8d59bd7 100644
@@ -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

Signature · 1 line
2.20.1
#1 lore raw
Quoted 6 lines · Brian Silverman

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.

Applied to linux-can/testing + opened an issue on github:
https://github.com/candle-usb/candleLight_fw/issues/87

Thanks,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
#2 lore raw
Quoted 10 lines · Marc Kleine-Budde
Quoted 6 lines · Brian Silverman

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.

Applied to linux-can/testing + opened an issue on github:
https://github.com/candle-usb/candleLight_fw/issues/87

BTW: Your [email protected] address fails:

| [email protected]
|  host aspmx.l.google.com [2a00:1450:400c:c0c::1a]
|  SMTP error from remote mail server after RCPT TO:<[email protected]>:
|  550-5.2.1 The email account that you tried to reach is disabled. Learn more at
|  550 5.2.1  https://support.google.com/mail/?p=DisabledUser o10si1930223wrh.555 - gsmtp

Should I change the author's email address to your gmail address?

regards,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
#3 lore raw
Quoted 9 lines · Marc Kleine-Budde

BTW: Your [email protected] address fails:

| [email protected]
|  host aspmx.l.google.com [2a00:1450:400c:c0c::1a]
|  SMTP error from remote mail server after RCPT TO:<[email protected]>:
|  550-5.2.1 The email account that you tried to reach is disabled. Learn more at
|  550 5.2.1  https://support.google.com/mail/?p=DisabledUser o10si1930223wrh.555 - gsmtp

Should I change the author's email address to your gmail address?

I wrote it as part of my employment by Blue River, but am currently moving on to another job. The policy was to have my work email on the patch. Seems like the same situation whenever somebody uses a work email and then leaves that job, just in this case the timing is tighter than common. I think leaving it is best.

To be clear, contributing this was definitely authorized by the company, I just didn't get around to sending out the patch until almost my last day.

Thanks,
Brian

#4 lore raw
Quoted 17 lines · Brian Silverman
Quoted 9 lines · Marc Kleine-Budde

BTW: Your [email protected] address fails:

| [email protected]
|  host aspmx.l.google.com [2a00:1450:400c:c0c::1a]
|  SMTP error from remote mail server after RCPT TO:<[email protected]>:
|  550-5.2.1 The email account that you tried to reach is disabled. Learn more at
|  550 5.2.1  https://support.google.com/mail/?p=DisabledUser o10si1930223wrh.555 - gsmtp

Should I change the author's email address to your gmail address?

I wrote it as part of my employment by Blue River, but am currently moving on to another job. The policy was to have my work email on the patch. Seems like the same situation whenever somebody uses a work email and then leaves that job, just in this case the timing is tighter than common. I think leaving it is best.

Quoted 3 lines

To be clear, contributing this was definitely authorized by the company, I just didn't get around to sending out the patch until almost my last day.

Ok. We should map that non working email address to working one, having non working email addresses in quite annoying when sending patches.

Basically there are two options:

1. Map your old bluerivertech.com address to a new address of yours, e.g. your gmail address.
2. Map the bluerivertech.com address to someone else (i.e. a real person) or a role account (e.g. [email protected]).

What do you prefer?

regards,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
#5 lore raw
Quoted 11 lines · Marc Kleine-Budde

Ok. We should map that non working email address to working one, having non working email addresses in quite annoying when sending patches.

Basically there are two options:

1. Map your old bluerivertech.com address to a new address of yours, e.g. your gmail address.
2. Map the bluerivertech.com address to someone else (i.e. a real person) or a role account (e.g. [email protected]).

What do you prefer?

Map it to [email protected] please.

Thanks,
Brian