]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm: ast,cirrus,mgag200: use drm_can_sleep
authorDave Airlie <airlied@redhat.com>
Thu, 23 Jan 2014 23:50:18 +0000 (09:50 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:55:43 +0000 (13:55 -0800)
commitf105771f195c34e690a37218e8f9c582d29a08b6
treea8fcd16dc767c7fc901a0eb35be3b7466bfd8d7a
parent5eab9d6d83994d8673f3364c1d1bc1e2a7147822
drm: ast,cirrus,mgag200: use drm_can_sleep

commit f4b4718b61d1d5a7442a4fd6863ea80c3a10e508 upstream.

these 3 were checking in_interrupt but we have situations where
calling vunmap under this could cause a BUG to be hit in
smp_call_function_many. Use the drm_can_sleep macro instead,
which should stop this path from been taken in this case.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ast/ast_fb.c
drivers/gpu/drm/cirrus/cirrus_fbdev.c
drivers/gpu/drm/mgag200/mgag200_fb.c