kernel/src/v4/sk_v4_identity.c:509: when g_usb[xc].count < xdev->max_slots + 1 a fresh array is allocated and the old one dropped, not copied or freed. g_offered, g_spare, g_pending_real, g_real_drive and g_zuse_dev (&d->part inside the old array) would then point into the abandoned array. Latent: max_slots does not change after the first allocation today.
Done when
The array is allocated once per controller (and the condition removed), or grown by copying with the pointers kept valid
🤖 Filed with Claude Code -- the code review of 2026-11-11, at 4d42d25c (Captain Bob, 2026-11-11: "File the review findings as issues"). Read, not run: each is to be confirmed by a test written first and seen to fail.
### Found
`kernel/src/v4/sk_v4_identity.c:509`: when `g_usb[xc].count < xdev->max_slots + 1` a fresh array is allocated and the old one dropped, not copied or freed. `g_offered`, `g_spare`, `g_pending_real`, `g_real_drive` and `g_zuse_dev` (`&d->part` inside the old array) would then point into the abandoned array. Latent: `max_slots` does not change after the first allocation today.
### Done when
- [ ] The array is allocated once per controller (and the condition removed), or grown by copying with the pointers kept valid
🤖 Filed with [Claude Code](https://claude.com/claude-code) -- the code review of 2026-11-11, at `4d42d25c` (Captain Bob, 2026-11-11: "File the review findings as issues"). Read, not run: each is to be confirmed by a test written first and seen to fail.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found
kernel/src/v4/sk_v4_identity.c:509: wheng_usb[xc].count < xdev->max_slots + 1a fresh array is allocated and the old one dropped, not copied or freed.g_offered,g_spare,g_pending_real,g_real_driveandg_zuse_dev(&d->partinside the old array) would then point into the abandoned array. Latent:max_slotsdoes not change after the first allocation today.Done when
🤖 Filed with Claude Code -- the code review of 2026-11-11, at
4d42d25c(Captain Bob, 2026-11-11: "File the review findings as issues"). Read, not run: each is to be confirmed by a test written first and seen to fail.