Commit 6edc3242 authored by Chris Wilson's avatar Chris Wilson

drm/i915/bios: Prevent NULL dereference after allocation failure

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent b5c616a7
......@@ -169,6 +169,8 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv,
((unsigned char *)entry + dvo_timing_offset);
panel_fixed_mode = kzalloc(sizeof(*panel_fixed_mode), GFP_KERNEL);
if (!panel_fixed_mode)
return;
fill_detail_timing_data(panel_fixed_mode, dvo_timing);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment