drm: Catch stop possible NULL pointer reference
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 3 Aug 2009 12:43:59 +0000 (13:43 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2009 03:29:49 +0000 (13:29 +1000)
commit4cb72b1727140f131b2df5f37c2e54f5965f98c2
tree2771cf62024a188203ac3c6e027e414fd169b703
parent7781de74568bddfefbd2d32a934a8c791a2420cd
drm: Catch stop possible NULL pointer reference

This was caught by Weiss. Also added some comments to the
fb_changed and mode_changed variables to explain what they do.

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Tested-by: Thomas White <taw@bitwiz.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c