Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 860b5b0c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ion: destroy ion handles under client->lock"

parents 4f07db43 1aea59a5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -915,6 +915,7 @@ void ion_client_destroy(struct ion_client *client)
	struct rb_node *n;

	pr_debug("%s: %d\n", __func__, __LINE__);
	mutex_lock(&client->lock);
	while ((n = rb_first(&client->handles))) {
		struct ion_handle *handle = rb_entry(n, struct ion_handle,
						     node);
@@ -922,6 +923,7 @@ void ion_client_destroy(struct ion_client *client)
	}

	idr_destroy(&client->idr);
	mutex_unlock(&client->lock);

	down_write(&dev->lock);
	if (client->task)