diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-05-16 08:49:16 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-18 09:53:27 -0400 |
commit | 16d8cd7ce408a20db1ab192e0fb565573e446b28 (patch) | |
tree | 136c377df9bba42dd76d1e07e8838bbf539cf5f0 /drivers/mtd/ubi | |
parent | f800f09bf44871f6c6e4d3e42a60946e1ea51b17 (diff) |
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>
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r-- | drivers/mtd/ubi/vmt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index 622d0d18952c..4add5c816b14 100644 --- a/drivers/mtd/ubi/vmt.c +++ b/drivers/mtd/ubi/vmt.c | |||
@@ -243,7 +243,6 @@ int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) | |||
243 | /* Reserve physical eraseblocks */ | 243 | /* Reserve physical eraseblocks */ |
244 | if (vol->reserved_pebs > ubi->avail_pebs) { | 244 | if (vol->reserved_pebs > ubi->avail_pebs) { |
245 | dbg_err("not enough PEBs, only %d available", ubi->avail_pebs); | 245 | dbg_err("not enough PEBs, only %d available", ubi->avail_pebs); |
246 | spin_unlock(&ubi->volumes_lock); | ||
247 | err = -ENOSPC; | 246 | err = -ENOSPC; |
248 | goto out_unlock; | 247 | goto out_unlock; |
249 | } | 248 | } |