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

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

Merge "gpu: ion: Loop on the handle count when destroying"

parents 9d15b3f2 738bd294
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -332,7 +332,7 @@ static void ion_handle_destroy(struct kref *kref)
	struct ion_buffer *buffer = handle->buffer;

	mutex_lock(&buffer->lock);
	while (buffer->kmap_cnt)
	while (handle->kmap_cnt)
		ion_handle_kmap_put(handle);
	mutex_unlock(&buffer->lock);