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