Commit 3823683a authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915/bios: Round PCI ROM VBT allocation to multiple of 4



The SPI code rounds the VBT allocation to a multiple of four bytes
(presumably because it reads the VBT 4 bytes at a time). Do the
same for the PCI ROM side to eliminate pointless differences between
the two codepaths. This will make no functional difference.

Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240923152453.11230-4-ville.syrjala@linux.intel.com
parent 1533b405
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3166,7 +3166,7 @@ static struct vbt_header *oprom_get_vbt(struct intel_display *display,
	}

	/* The rest will be validated by intel_bios_is_valid_vbt() */
	vbt = kmalloc(vbt_size, GFP_KERNEL);
	vbt = kmalloc(round_up(vbt_size, 4), GFP_KERNEL);
	if (!vbt)
		goto err_unmap_oprom;