From 0a203070f5189a53f764e1e6e960ac70acfad5a9 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 17 Jun 2015 14:27:48 +0200 Subject: [PATCH] cleanup: missing target_type check in device_is_usable filter --- lib/activate/dev_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 43e006a4c..f4b2a4a74 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -638,7 +638,7 @@ int device_is_usable(struct device *dev, struct dev_usable_check_params check) * correctly, not just snapshots but any cobimnation possible * in a stack - use proper dm tree to check this instead. */ - if (check.check_suspended && + if (check.check_suspended && target_type && (!strcmp(target_type, "snapshot") || !strcmp(target_type, "snapshot-origin")) && _ignore_suspended_snapshot_component(dev)) { log_debug_activation("%s: %s device %s not usable.", dev_name(dev), target_type, name);