[PATCH] drm/amdgpu: check if hubbub is NULL in debugfs/amdgpu_dm_capabilities

2025-07-17 Thread Peter Shkenev
HUBBUB structure is not initialized on DCE hardware, so check if it is NULL to avoid null dereference while accessing amdgpu_dm_capabilities file in debugfs. Signed-off-by: Peter Shkenev --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] drm/amdgpu: check if hubbub is NULL in debugfs/amdgpu_dm_capabilities

2025-07-17 Thread Peter Shkenev
HUBBUB structure is not initialized on DCE hardware, so check if it is NULL to avoid null dereference while accessing amdgpu_dm_capabilities file in debugfs. Signed-off-by: Peter Shkenev --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 RESEND] drm/virtio: use generic dumb_map_offset implementation

2024-11-07 Thread Peter Shkenev
Thus, make driver use the generic implementation. This includes VIRTGPU_MAP ioctl so it cannot be used to circumvent rules imposed by drm_gem_dumb_map_offset (imported objects cannot be mapped). Signed-off-by: Peter Shkenev --- Changes in v2: - Remove excessive include of drm_gem.h

[PATCH v2] drm/virtio: use generic dumb_map_offset implementation

2024-10-21 Thread Peter Shkenev
Thus, make driver use the generic implementation. This includes VIRTGPU_MAP ioctl so it cannot be used to circumvent rules imposed by drm_gem_dumb_map_offset (imported objects cannot be mapped). Signed-off-by: Peter Shkenev --- Changes in v2: - Remove excessive include of drm_gem.h

[PATCH] drm/virtio: use generic dumb_map_offset implementation

2024-10-14 Thread Peter Shkenev
Thus, make driver use the generic implementation. This includes VIRTGPU_MAP ioctl so it cannot be used to circumvent rules imposed by drm_gem_dumb_map_offset (imported objects cannot be mapped). Signed-off-by: Peter Shkenev --- drivers/gpu/drm/virtio/virtgpu_drv.c | 1 - drivers/gpu/drm/v