diff options
| author | Dan Carpenter <[email protected]> | 2020-04-06 14:45:52 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2020-08-10 14:38:55 +0000 |
| commit | cf16fe9243bfa2863491026fc727618c7c593c84 (patch) | |
| tree | 307e7504e850eb89fca913611f87b5d3fd81a125 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | vdpa/mlx5: Fix pointer math in mlx5_vdpa_get_config() (diff) | |
| download | kernel-cf16fe9243bfa2863491026fc727618c7c593c84.tar.gz kernel-cf16fe9243bfa2863491026fc727618c7c593c84.zip | |
vdpa: Fix pointer math bug in vdpasim_get_config()
If "offset" is non-zero then we end up copying from beyond the end of
the config because of pointer math. We can fix this by casting the
struct to a u8 pointer.
Fixes: 2c53d0f64c06 ("vdpasim: vDPA device simulator")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/20200406144552.GF68494@mwanda
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
