diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-12 17:16:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-12 17:46:14 +0100 |
commit | 6edc3242e35f03990e362e7c115e722717f0f7a7 (patch) | |
tree | 0f6e9557713991a742e2b66628b89321877b1d4e /drivers/gpu/drm | |
parent | b5c616a75428d85f92407e4509553f937b720630 (diff) | |
download | talos-obmc-linux-6edc3242e35f03990e362e7c115e722717f0f7a7.tar.gz talos-obmc-linux-6edc3242e35f03990e362e7c115e722717f0f7a7.zip |
drm/i915/bios: Prevent NULL dereference after allocation failure
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/intel_bios.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 8d7deca69830..8986a4b898db 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -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); |