]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: add sanity check to wptr.
authorDave Airlie <airlied@redhat.com>
Wed, 31 Mar 2010 03:38:56 +0000 (13:38 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Apr 2010 02:50:19 +0000 (12:50 +1000)
commita9bedbf858c6831df6707e8f74486a98abc2a3d4
tree18a1bec350a97117f4540e96323eb0efad3f9b36
parent03f5f3b27f61a38e6ff5d2192f43e0ef499693f3
drm/radeon/kms: add sanity check to wptr.

If we resume in a bad way, we'll get 0xffffffff in wptr, and then
oops with no console. This just adds a sanity check so that we can
avoid the oops and hopefully get more details out of people's systems.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c