[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6971c808-fc6d-0d78-c672-7c63c043485b@users.sourceforge.net>
Date: Tue, 27 Sep 2016 18:51:15 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-raid@...r.kernel.org, Shaohua Li <shli@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH 05/16] md/bitmap: Return directly after a failed
bitmap_storage_alloc() in bitmap_resize()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Tue, 27 Sep 2016 14:47:29 +0200
Return directly after a memory allocation failed in this function
at the beginning.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/md/bitmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index c278865..5092bc0 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -2032,7 +2032,7 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,
mddev_is_clustered(bitmap->mddev)
? bitmap->cluster_slot : 0);
if (ret)
- goto err;
+ return ret;
pages = DIV_ROUND_UP(chunks, PAGE_COUNTER_RATIO);
--
2.10.0
Powered by blists - more mailing lists