drm/i915: avoid uninitialised var in eb_parse()
authorJonathan Gray <jsg@jsg.id.au>
Mon, 9 Aug 2021 11:30:22 +0000 (21:30 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:22:19 +0000 (13:22 +0200)
commit11891adab23daa7e08a8e0c25bebfba9c5b5a579
tree67f6a32a2fac7b96f4f2459074d27f552c722e94
parenta3e6bd0c71bb5e4821aff9ab8f221bfc08039d73
drm/i915: avoid uninitialised var in eb_parse()

The backport of c9d9fdbc108af8915d3f497bbdf3898bf8f321b8 to 5.10 in
6976f3cf34a1a8b791c048bbaa411ebfe48666b1 removed more than it should
have leading to 'batch' being used uninitialised.  The 5.13 backport and
the mainline commit did not remove the portion this patch adds back.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Fixes: 6976f3cf34a1 ("drm/i915: Revert "drm/i915/gem: Asynchronous cmdparser"")
Cc: <stable@vger.kernel.org> # 5.10
Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c