[PATCH 6.1 118/134] ubi: Fix failure attaching when vid_hdr offset equals to (sub)page size