aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2009-11-27 13:06:56 +0000
committerEric Anholt <[email protected]>2009-11-30 15:16:32 -0800
commitd271817baecbccb47da0d9f28c285a0dae8a06b7 (patch)
treeedf7c1cd1efbc4b11df15d798348f8313468089c /net/lapb/lapb_iface.c
parent9bedb9743fd906e4160468663ee6e1bbdc4412b8 (diff)
drm/i915: Avoid NULL dereference with component_only tv_modes
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 <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Zhenyu Wang <[email protected]> [ickle: Actually reference the correct bug report] Acked-by: Zhenyu Wang <[email protected]> Signed-off-by: Eric Anholt <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions