drm/vmwgfx: Fix an uninitialized value
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 4 Aug 2015 13:37:16 +0000 (15:37 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Aug 2015 12:01:12 +0000 (14:01 +0200)
Reported by Intel's kbuild robot.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c

index afc6d1df47d7081ced2f5e2110b40bed23900222..5667c134e409b07e5813db7ad3981961da973f36 100644 (file)
@@ -507,7 +507,7 @@ static void vmw_cmdbuf_work_func(struct work_struct *work)
        struct vmw_cmdbuf_man *man =
                container_of(work, struct vmw_cmdbuf_man, work);
        struct vmw_cmdbuf_header *entry, *next;
-       bool restart;
+       bool restart = false;
 
        spin_lock_bh(&man->lock);
        list_for_each_entry_safe(entry, next, &man->error, list) {