diff options
| author | Laurent Pinchart <[email protected]> | 2020-12-15 20:23:07 +0000 |
|---|---|---|
| committer | Laurent Pinchart <[email protected]> | 2021-01-05 05:20:36 +0000 |
| commit | 2c8aba81d32bd90e202ba05249433ab7b1c28c7d (patch) | |
| tree | 8e921cfdbd9fd72a234f1934d29fb3014f3ba5c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm: Use a const drm_driver for legacy PCI devices (diff) | |
| download | kernel-2c8aba81d32bd90e202ba05249433ab7b1c28c7d.tar.gz kernel-2c8aba81d32bd90e202ba05249433ab7b1c28c7d.zip | |
drm: Constify drm_driver in drivers that don't modify it
A non-const structure containing function pointers is a possible attack
vector. The drm_driver structure is already const in most drivers, but
there are a few exceptions. Constify the structure in the drivers that
don't need to modify at, as a low-hanging fruit. The rest of the drivers
will need a more complex fix.
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
