[PATCH v4] PCI: mediatek: Fix integer truncation and handle oversized resources

Sreeraj S Kurup sreekuttan2156239 at gmail.com
Wed Oct 28 03:34:00 PDT 2026


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



More information about the Linux-mediatek mailing list