This patch calculates expected size of the structure for a given
BDB version and compares it with the value gathered from BDB.
Tested on Chromebook Pixelbook (Nocturne) (reports bdb->version = 221)
Tested-by: Lukasz Majczak
Signed-off-by: Lukasz Majczak
---
drivers/gpu/drm/i915/display/intel_bi
This patch calculates expected size of the structure for a given
BDB version and compares it with the value gathered from BDB.
Tested on Chromebook Pixelbook (Nocturne) (reports bdb->version = 221)
Tested-by: Lukasz Majczak
Signed-off-by: Lukasz Majczak
---
drivers/gpu/drm/i915/display/intel_bi
pon., 20 wrz 2021 o 22:47 Souza, Jose napisaĆ(a):
>
> On Mon, 2021-09-20 at 16:11 +0200, Lukasz Majczak wrote:
> > With patch "drm/i915/vbt: Fix backlight parsing for VBT 234+"
> > the size of bdb_lfp_backlight_data structure has been increased,
> > causing if-st
This patch fixes it by comparing a total size of all fileds from
the structure (present before the change) with the value gathered from BDB.
Tested on Chromebook Pixelbook (Nocturne) (reports bdb->version = 221)
Cc: # 5.4+
Tested-by: Lukasz Majczak
Signed-off-by: Lukasz Majczak
---
drivers