]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: fix potential segfault in r600_ioctl_wait_idle
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 27 Sep 2010 14:57:10 +0000 (10:57 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 27 Sep 2010 23:16:05 +0000 (09:16 +1000)
commit12b8dbb5f2156708fbf6a89d2d974f1ea58f6a43
tree2a98f3a7314a90fa2b894dd1042758e66076355f
parent0aeb9a05452efb4df82c1e22682c707786d60dd2
drm/radeon/kms: fix potential segfault in r600_ioctl_wait_idle

radeon_gem_wait_idle_ioctl can apparently get called prior to
the vram page being set up or even if accel if false, so make
sure it's valid before using it.

Should fix:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597636
https://bugs.freedesktop.org/show_bug.cgi?id=29834

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600.c