diff options
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index bbfb9668072a..0d37c849b686 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -1870,6 +1870,8 @@ static ssize_t amdgpu_set_pp_power_profile_mode(struct device *dev,  		memcpy(buf_cpy, buf, count-i);  		tmp_str = buf_cpy;  		while ((sub_str = strsep(&tmp_str, delimiter)) != NULL) { +			if (strlen(sub_str) == 0) +				continue;  			ret = kstrtol(sub_str, 0, ¶meter[parameter_size]);  			if (ret)  				return -EINVAL;  | 
