]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
UBI: error path bugfix
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 16 May 2007 12:49:16 +0000 (15:49 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:53:27 +0000 (16:53 +0300)
No need to unlock the lock, this will be done at out_unlock.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/vmt.c

index 622d0d18952c8c5fb9dbc6ae3f37d20a7ef40be0..4add5c816b14db58251ffaeb0f6c007ac8f99fed 100644 (file)
@@ -243,7 +243,6 @@ int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req)
        /* Reserve physical eraseblocks */
        if (vol->reserved_pebs > ubi->avail_pebs) {
                dbg_err("not enough PEBs, only %d available", ubi->avail_pebs);
-               spin_unlock(&ubi->volumes_lock);
                err = -ENOSPC;
                goto out_unlock;
        }