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

Commit d40a4b5b 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: Release device mutex on failure"

parents 1d0b503b 6c80670d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -538,8 +538,10 @@ static int profile_enable_set(void *data, u64 val)
	if (val && profile->log_buffer == NULL) {
		/* allocate profile_log_buffer the first time enabled */
		profile->log_buffer = vmalloc(ADRENO_PROFILE_LOG_BUF_SIZE);
		if (profile->log_buffer == NULL)
		if (profile->log_buffer == NULL) {
			mutex_unlock(&device->mutex);
			return -ENOMEM;
		}
		profile->log_tail = profile->log_buffer;
		profile->log_head = profile->log_buffer;
	}