[PATCH 6.2 033/211] ubi: Fix use-after-free when volume resizing failed