Re: [PATCH] drm/i915/bios: fix off by one in parse_generic_dtd()

2019-12-12 Thread Jani Nikula
On Thu, 12 Dec 2019, Matt Roper wrote: > On Thu, Dec 12, 2019 at 12:11:30PM +0300, Dan Carpenter wrote: >> The "num_dtd" variable is the number of elements in the >> generic_dtd->dtd[] array so the > needs to be >= to prevent reading one >> element beyond the end of the array. >> >> Fixes:

Re: [PATCH] drm/i915/bios: fix off by one in parse_generic_dtd()

2019-12-12 Thread Matt Roper
On Thu, Dec 12, 2019 at 12:11:30PM +0300, Dan Carpenter wrote: > The "num_dtd" variable is the number of elements in the > generic_dtd->dtd[] array so the > needs to be >= to prevent reading one > element beyond the end of the array. > > Fixes: 33ef6d4fd8df ("drm/i915/vbt: Handle generic DTD

[PATCH] drm/i915/bios: fix off by one in parse_generic_dtd()

2019-12-12 Thread Dan Carpenter
The "num_dtd" variable is the number of elements in the generic_dtd->dtd[] array so the > needs to be >= to prevent reading one element beyond the end of the array. Fixes: 33ef6d4fd8df ("drm/i915/vbt: Handle generic DTD block") Signed-off-by: Dan Carpenter ---