[PATCH] md: avoid reading past the end of a bitmap file