Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/edid: fix info leak when failing to get panel id

Make sure to clear the transfer buffer before fetching the EDID to
avoid leaking slab data to the logs on errors that leave the buffer
unchanged.

Fixes: 69c7717c20cc ("drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error")
Cc: stable@vger.kernel.org # 6.2
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230302074704.11371-1-johan+linaro@kernel.org

authored by

Johan Hovold and committed by
Douglas Anderson
4d8457fe 77bc7624

+1 -1
+1 -1
drivers/gpu/drm/drm_edid.c
··· 2797 2797 * the EDID then we'll just return 0. 2798 2798 */ 2799 2799 2800 - base_block = kmalloc(EDID_LENGTH, GFP_KERNEL); 2800 + base_block = kzalloc(EDID_LENGTH, GFP_KERNEL); 2801 2801 if (!base_block) 2802 2802 return 0; 2803 2803