The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=0278a71ccd7f26c67a941b46fbf51ae6d9f71474
commit 0278a71ccd7f26c67a941b46fbf51ae6d9f71474 Author: Kevin Bowling <[email protected]> AuthorDate: 2026-08-11 19:36:33 +0000 Commit: Kevin Bowling <[email protected]> CommitDate: 2026-08-25 00:30:10 +0000 ixl: Avoid a signed PHY capability shift The PHY capability display examines all 32 bits of the firmware bitmap. Use an unsigned value so examining bit 31 does not shift a signed integer into its sign bit. (cherry picked from commit f7427f890c7f34d0842a35eb9df814adad11a95a) --- sys/dev/ixl/ixl_pf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ixl/ixl_pf_main.c b/sys/dev/ixl/ixl_pf_main.c index a09321850958..77ef7cd82120 100644 --- a/sys/dev/ixl/ixl_pf_main.c +++ b/sys/dev/ixl/ixl_pf_main.c @@ -3558,7 +3558,7 @@ ixl_sysctl_phy_abilities(SYSCTL_HANDLER_ARGS) if (abilities.phy_type != 0) { sbuf_printf(buf, "<"); for (int i = 0; i < 32; i++) - if ((1 << i) & abilities.phy_type) + if ((1U << i) & abilities.phy_type) sbuf_printf(buf, "%s,", ixl_phy_type_string(i, false)); sbuf_printf(buf, ">"); }
