[PATCH 5.2 020/143] btrfs: trim: Check the range passed into to prevent overflow