]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0088-dm-thin-metadata-unlock-superblock-in-init_pmd-error.patch
linux-ti335x-psp 3.2: update to v3.2.11
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.10 / 0088-dm-thin-metadata-unlock-superblock-in-init_pmd-error.patch
1 From 6db3a704cbd90710b19ddc34e90674680adbbb76 Mon Sep 17 00:00:00 2001
2 From: Joe Thornber <ejt@redhat.com>
3 Date: Wed, 7 Mar 2012 19:09:43 +0000
4 Subject: [PATCH 88/95] dm thin metadata: unlock superblock in init_pmd error
5  path
7 commit 4469a5f387fdde956894137751a41473618a4a52 upstream.
9 If dm_sm_disk_create() fails the superblock must be unlocked.
11 Signed-off-by: Joe Thornber <ejt@redhat.com>
12 Acked-by: Mike Snitzer <snitzer@redhat.com>
13 Signed-off-by: Alasdair G Kergon <agk@redhat.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 ---
16  drivers/md/dm-thin-metadata.c |    1 +
17  1 file changed, 1 insertion(+)
19 diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c
20 index 13d9646..05b7ffc 100644
21 --- a/drivers/md/dm-thin-metadata.c
22 +++ b/drivers/md/dm-thin-metadata.c
23 @@ -385,6 +385,7 @@ static int init_pmd(struct dm_pool_metadata *pmd,
24                 data_sm = dm_sm_disk_create(tm, nr_blocks);
25                 if (IS_ERR(data_sm)) {
26                         DMERR("sm_disk_create failed");
27 +                       dm_tm_unlock(tm, sblock);
28                         r = PTR_ERR(data_sm);
29                         goto bad;
30                 }
31 -- 
32 1.7.9.4