Re: [PATCH v4] PCI: mediatek: Fix integer truncation and handle oversized resources
From: Sreeraj S Kurup
Date: Wed Oct 28 2026 - 06:34:51 EST
Hi Mani,
Thanks for the review.
I've addressed your comments in v5:
- Removed the redundant zero-size check.
- Changed `fls64(size - 1)` to `fls64(size)`.
- Kept the full resource size calculation and added validation to reject oversized windows rather than silently clamping the size order.
I'll send the updated patch shortly.
Best regards,
Sreeraj