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