drm/radeon: fix regression in UMS CS ioctl
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 30 May 2012 14:09:30 +0000 (10:09 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 1 Jun 2012 16:00:21 +0000 (17:00 +0100)
commit9b00147d9f2ba137ce74b66b768a8312be0b6781
treebc37f50072056deb5bfa586db8aeae67cd20afcf
parent0824db38e515644f8d1bfd64adbd7cb2c6ea7c62
drm/radeon: fix regression in UMS CS ioctl

radeon_cs_parser_init is called by both the legacy UMS
CS ioctl and the KMS CS ioctl.  Protect KMS specific
pieces of the code by checking that rdev is not NULL.

Reported-by: Michael Burian <michael.burian@sbg.at>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cs.c