i915: initialize the free_list of the fencing atomic_helper
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 6 Apr 2017 23:23:45 +0000 (01:23 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 10:26:52 +0000 (11:26 +0100)
Just in case the llist model changes and NULL isn't valid
initialization.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170406232347.988-4-aarcange@redhat.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c

index 26e871a4c30c9ef881e8bdd714d5102de0eacb4d..b60ba164f567b02c76938eacf5d83c71a911c661 100644 (file)
@@ -14992,6 +14992,7 @@ int intel_modeset_init(struct drm_device *dev)
 
        dev->mode_config.funcs = &intel_mode_funcs;
 
+       init_llist_head(&dev_priv->atomic_helper.free_list);
        INIT_WORK(&dev_priv->atomic_helper.free_work,
                  intel_atomic_helper_free_state_worker);