diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2019-02-19 11:40:19 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2019-02-19 14:54:08 -0500 |
commit | 860433ed2a55dcd18f36c61b3c4fdb12dc76c869 (patch) | |
tree | 86a3ec5a53285fa192fd0a6ab8d99ecf4797cb27 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | 7cce8e4efe5e782e130f79f8d55fdad48f2db52d (diff) |
drm/msm: Truncate the buffer object name if the copy from user failed
(Resend since there was a compile error that I forgot to commit before sending)
If there is a error while doing a copy_from_user() for MSM_INFO_SET_NAME
make sure to truncate the object name so that there isn't a chance that
we'll have random data in the string.
This is on top of [1] reported and fixed by Dan Carpenter.
[1] https://patchwork.freedesktop.org/series/56656/
Fixes: f05c83e77460 ("drm/msm: add uapi to get/set debug name")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions