[PATCH 6.2 128/139] ubi: Fix failure attaching when vid_hdr offset equals to (sub)page size