drm/i915: avoid uninitialised var in eb_parse()
authorjsg <jsg@openbsd.org>
Wed, 11 Aug 2021 03:08:26 +0000 (03:08 +0000)
committerjsg <jsg@openbsd.org>
Wed, 11 Aug 2021 03:08:26 +0000 (03:08 +0000)
commita37a8dba40b1e63c86acf3e853f5872e72459de5
tree0cd0f41625463cacddf0765c2f09f93161146179
parentd9ace711b0722439561a14e36606d6552082580a
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.

Sent to the linux stable list and queued to be in 5.10.58.
sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c