Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

UBI: error path bugfix

No need to unlock the lock, this will be done at out_unlock.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

-1
-1
drivers/mtd/ubi/vmt.c
··· 243 243 /* Reserve physical eraseblocks */ 244 244 if (vol->reserved_pebs > ubi->avail_pebs) { 245 245 dbg_err("not enough PEBs, only %d available", ubi->avail_pebs); 246 - spin_unlock(&ubi->volumes_lock); 247 246 err = -ENOSPC; 248 247 goto out_unlock; 249 248 }