[PATCH openEuler-1.0-LTS 2/2] ubi: Fix failure attaching when vid_hdr offset equals to (sub)page size