提交 6edc3242 编写于 作者: C Chris Wilson

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

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册