summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-11-27 13:06:56 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-18 14:05:44 -0800
commit452a68706c276224ce1c91fff9ca88158d53c426 (patch)
treea0c81f20196cdcc0b694f1e24b79b0f8ddc7007f /drivers/i2c
parent21fc7b8d8c49b0f6ce7a45ae44361d31e93e629a (diff)
drm/i915: Avoid NULL dereference with component_only tv_modes
commit d271817baecbccb47da0d9f28c285a0dae8a06b7 upstream. In commit d2d9f2324, the guard for a valid video mode was removed. This caused the regression: kernel crash during kms graphic boot on Intel GM4500 platform https://bugzilla.redhat.com/show_bug.cgi?id=540218 This patches changes the logic slightly not to rely on a coupled variable, but to just check whether the video_modes is valid before dereferencing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Zhenyu Wang <zhenyu.z.wang@intel.com> [ickle: Actually reference the correct bug report] Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions