drm/radeon/kms: r600/r700 don't process IRQ if not initialized
authorJerome Glisse <jglisse@redhat.com>
Fri, 15 Jan 2010 13:44:38 +0000 (14:44 +0100)
committerDave Airlie <airlied@linux.ie>
Wed, 20 Jan 2010 22:43:56 +0000 (08:43 +1000)
In some rare case the wptr returned from the hw wasn't 0 and leaded
to trick r600_process_irq that their were irq to process. Add a
check to bail out if irq hasn't been initialized this will avoid
oops provoqued by the rare wptr != 0 on initialization.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>

No differences found