aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-exception-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index 3d65917a1bbb..8fe81e1807e0 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -623,6 +623,7 @@ int dm_create_persistent(struct exception_store *store)
623 623
624 ps->metadata_wq = create_singlethread_workqueue("ksnaphd"); 624 ps->metadata_wq = create_singlethread_workqueue("ksnaphd");
625 if (!ps->metadata_wq) { 625 if (!ps->metadata_wq) {
626 kfree(ps);
626 DMERR("couldn't start header metadata update thread"); 627 DMERR("couldn't start header metadata update thread");
627 return -ENOMEM; 628 return -ENOMEM;
628 } 629 }