[PATCH 162/195] ubi: Fix an error pointer dereference in error handling code