This is a note to let you know that I've just added the patch titled
dm era: check for a non-NULL metadata object before closing it
to the 3.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
dm-era-check-for-a-non-null-metadata-object-before-closing-it.patch
and it can be found in the queue-3.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 989f26f5ad308f40a95f280bf9cd75e558d4f18d Mon Sep 17 00:00:00 2001
From: Joe Thornber <[email protected]>
Date: Tue, 11 Mar 2014 16:46:25 +0000
Subject: dm era: check for a non-NULL metadata object before closing it
From: Joe Thornber <[email protected]>
commit 989f26f5ad308f40a95f280bf9cd75e558d4f18d upstream.
era_ctr() may call era_destroy() before era->md is initialized so
era_destory() must only close the metadata object if it is not NULL.
Signed-off-by: Joe Thornber <[email protected]>
Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/md/dm-era-target.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/md/dm-era-target.c
+++ b/drivers/md/dm-era-target.c
@@ -1391,7 +1391,8 @@ static int era_is_congested(struct dm_ta
static void era_destroy(struct era *era)
{
- metadata_close(era->md);
+ if (era->md)
+ metadata_close(era->md);
if (era->wq)
destroy_workqueue(era->wq);
Patches currently in stable-queue which might be from [email protected] are
queue-3.15/dm-era-check-for-a-non-null-metadata-object-before-closing-it.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html