]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite686d42b862725b6929136185e0d388c28fe2aeb
treebc37f50072056deb5bfa586db8aeae67cd20afcf
parentb477cd74542e0b2cfafd06bd34e566bd7dcd8d12
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