aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-08-08 09:32:41 +0000
committerMichael S. Tsirkin <[email protected]>2020-08-10 13:01:21 +0000
commit2874211fcdb751e2962d68cdb9783fa1ff8eb340 (patch)
tree051f16c6d1cf569dae8360287149970ed365b78a /drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c
parentvdpa/mlx5: fix memory allocation failure checks (diff)
downloadkernel-2874211fcdb751e2962d68cdb9783fa1ff8eb340.tar.gz
kernel-2874211fcdb751e2962d68cdb9783fa1ff8eb340.zip
vdpa/mlx5: Fix pointer math in mlx5_vdpa_get_config()
There is a pointer math bug here so if "offset" is non-zero then this will copy memory from beyond the end of the array. Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/20200808093241.GB115053@mwanda Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Eli Cohen <[email protected]> Cc: Jason Wang <[email protected]>; Parav Pandit <[email protected]>; [email protected]; [email protected]; [email protected] Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by: Dan Carpenter <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c')
0 files changed, 0 insertions, 0 deletions