Skip to content

Commit

Permalink
drm/i915/bios: Prevent NULL dereference after allocation failure
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Sep 12, 2010
1 parent b5c616a commit 6edc324
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/intel_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6edc324

Please sign in to comment.