[PATCH openEuler-5.10 22/39] ubi: ubi_create_volume: Fix use-after-free when volume creation failed