Re: [PATCH v2 2/3] drm: Use a const drm_driver for legacy PCI devices

2020-12-16 Thread Laurent Pinchart
On Wed, Dec 16, 2020 at 03:29:00PM +0100, Daniel Vetter wrote: > On Tue, Dec 15, 2020 at 10:31:25PM +0200, Laurent Pinchart wrote: > > Now that the legacy PCI support code doesn't need to write to the > > drm_driver structure, it can be treated as const through the whole DRM > > core, unconditional

Re: [PATCH v2 2/3] drm: Use a const drm_driver for legacy PCI devices

2020-12-16 Thread Daniel Vetter
On Tue, Dec 15, 2020 at 10:31:25PM +0200, Laurent Pinchart wrote: > Now that the legacy PCI support code doesn't need to write to the > drm_driver structure, it can be treated as const through the whole DRM > core, unconditionally. This allows declaring the structure as const in > all drivers, remo

[PATCH v2 2/3] drm: Use a const drm_driver for legacy PCI devices

2020-12-15 Thread Laurent Pinchart
Now that the legacy PCI support code doesn't need to write to the drm_driver structure, it can be treated as const through the whole DRM core, unconditionally. This allows declaring the structure as const in all drivers, removing one possible attack vector. Signed-off-by: Laurent Pinchart --- dr