Loading drivers/gpu/msm/adreno_profile.c +3 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
drivers/gpu/msm/adreno_profile.c +3 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading