diff options
| author | Omar Sandoval <[email protected]> | 2018-11-12 08:08:46 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-11-12 15:28:37 +0000 |
| commit | 18e962ac0781bcb70d433de3b2a325ff792b4288 (patch) | |
| tree | 08a29ea40815efa2d7504cb12f89cec1ec77cf54 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | floppy: fix race condition in __floppy_read_block_0() (diff) | |
| download | kernel-18e962ac0781bcb70d433de3b2a325ff792b4288.tar.gz kernel-18e962ac0781bcb70d433de3b2a325ff792b4288.zip | |
kyber: fix wrong strlcpy() size in trace_kyber_latency()
When copying to the latency type, we should be passing LATENCY_TYPE_LEN,
not DOMAIN_LEN (this isn't a problem in practice because we only pass
"total" or "I/O"). Fix it by changing all of the strlcpy() calls to use
sizeof().
Fixes: 6c3b7af1c975 ("kyber: add tracepoints")
Reported-by: Jordan Glover <[email protected]>
Tested-by: Jordan Glover <[email protected]>
Signed-off-by: Omar Sandoval <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
