Merge "msm: ipa: Bug fix in RM add_dependency"
diff --git a/drivers/platform/msm/ipa/ipa_rm_resource.c b/drivers/platform/msm/ipa/ipa_rm_resource.c
index 4e1679c..7142dc7 100644
--- a/drivers/platform/msm/ipa/ipa_rm_resource.c
+++ b/drivers/platform/msm/ipa/ipa_rm_resource.c
@@ -525,10 +525,11 @@
 		consumer_result = ipa_rm_resource_consumer_request(
 				(struct ipa_rm_resource_cons *)depends_on);
 		spin_lock_irqsave(&resource->state_lock, flags);
-		if (consumer_result != -EINPROGRESS)
+		if (consumer_result != -EINPROGRESS) {
 			resource->state = prev_state;
 			((struct ipa_rm_resource_prod *)
 					resource)->pending_request--;
+		}
 		result = consumer_result;
 		break;
 	}