[PATCH 5.17 126/219] block: fix offset/size check in bio_trim()