drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create()
Drivers shouldn't clobber the passed in addfb ioctl parameters. i915 was doing just that. To prevent it from happening again, pass the struct around as const, starting all the way from internal_framebuffer_create(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
このコミットが含まれているのは:
@@ -23,7 +23,7 @@ nouveau_framebuffer(struct drm_framebuffer *fb)
|
||||
}
|
||||
|
||||
int nouveau_framebuffer_init(struct drm_device *, struct nouveau_framebuffer *,
|
||||
struct drm_mode_fb_cmd2 *, struct nouveau_bo *);
|
||||
const struct drm_mode_fb_cmd2 *, struct nouveau_bo *);
|
||||
|
||||
struct nouveau_page_flip_state {
|
||||
struct list_head head;
|
||||
|
新しいイシューから参照
ユーザーをブロックする