[PATCH] virtio: fix variable shadowing in virtqueue_add_sgs input scatter loop

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 23 02:21:13 PST 2026


On Sun, 15 Feb 2026 18:11:23 +0100, Ahmad Fatoum wrote:
> The inner for loop in the in_sgs processing section had a local
> declaration 'struct scatterlist *sg = sgs[n]' that shadowed the loop
> variable 'sg' from the enclosing for statement.
> 
> Remove the shadowing declaration so the loop variable is used
> consistently, matching the out_sgs loop.
> This aligns the loop with the logic above for out_sgs.
> 
> [...]

Applied, thanks!

[1/1] virtio: fix variable shadowing in virtqueue_add_sgs input scatter loop
      https://git.pengutronix.de/cgit/barebox/commit/?id=2731cfdb8dcc (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list