* Re: [PATCH can-next v11 8/9] can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages
[not found] <20261130-gs_usb-fixes-v11-8-3f052bb620d4@pengutronix.de>
@ 2026-12-01 20:53 ` netdev-bot+sashiko
0 siblings, 0 replies; only message in thread
From: netdev-bot+sashiko @ 2026-12-01 20:53 UTC (permalink / raw)
To: mkl; +Cc: mailhol, pfink, eric, max, wg, kernel, linux-can, stable, kuba
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] This patch fixes a defect that came from specific earlier
commits, but it has no Fixes: tag.
--
can: gs_usb: gs_usb_receive_bulk_callback(): use dev_info_ratelimited() to print re-submit info messages
When the IN URB resubmit in gs_usb_receive_bulk_callback() fails, this
commit logs the message against the USB device with
dev_info_ratelimited(). Previously it used net_ratelimit() and
netdev_info(). The message now names the affected device even when the
resubmit happens before netdev is assigned, and the NULL initialization
of netdev is dropped.
Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260729102802.505168-1-mkl@pengutronix.de
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260729102802.505168-1-mkl@pengutronix.de
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
[Severity: Low]
Should this patch have a Fixes: tag?
The message being changed was added by commit 79a6d1bfe114 ("can: gs_usb:
gs_usb_receive_bulk_callback(): unanchor URL on usb_submit_urb() error").
In gs_usb_receive_bulk_callback(), the early short read path jumps to
resubmit_urb before netdev is assigned:
minimum_length = sizeof(hf->header);
if (urb->actual_length < minimum_length) {
...
goto resubmit_urb;
}
If usb_submit_urb() then fails with an error other than -ENODEV or
-ESHUTDOWN, the old code passed netdev to netdev_info().
Commit 494fc029f662 ("can: gs_usb: gs_usb_receive_bulk_callback(): fix
error message") set netdev to NULL on that path. After that change the
message printed "(NULL net_device): failed to re-submit IN URB: ..."
without saying which device failed.
This patch finishes that fix and removes the NULL initialization that
494fc029f662 added. Would a tag like this help here?
Fixes: 494fc029f662 ("can: gs_usb: gs_usb_receive_bulk_callback(): fix error message")
Without it, stable trees that took 494fc029f662 have no way to find this
follow-up automatically. The other bug fixes earlier in this series
appear to carry Fixes: tags.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130-gs_usb-fixes-v11-0-3f052bb620d4%40pengutronix.de
^ permalink raw reply [flat|nested] only message in thread