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

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

Merge "msm: kgsl: Properly print profile assignments when none are set"

parents 6b1f6adb 92d7a8e8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -521,6 +521,11 @@ static ssize_t profile_assignments_read(struct file *filep,

	mutex_lock(&device->mutex);

	if (profile->assignment_count == 0) {
		mutex_unlock(&device->mutex);
		return 0;
	}

	buf = kmalloc(max_size, GFP_KERNEL);
	if (!buf) {
		mutex_unlock(&device->mutex);