[PATCH 5.4 70/92] ubi: Fix failure attaching when vid_hdr offset equals to (sub)page size