diff options
author | Dave Airlie <airlied@redhat.com> | 2014-02-05 08:47:45 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-02-06 05:39:03 +0400 |
commit | 8b7ad1bb3d440da888f2a939dc870eba429b9192 (patch) | |
tree | 20f57727fe6a071847ada03c5bacbecf52970e26 /drivers/gpu/drm/mgag200/mgag200_fb.c | |
parent | ec22b4aa993abbd18f5bbbcb20a1c56be3b1d38b (diff) | |
download | linux-8b7ad1bb3d440da888f2a939dc870eba429b9192.tar.xz |
drm/mgag200,ast,cirrus: fix regression with drm_can_sleep conversion
I totally sign inverted my way out of this one.
Cc: stable@vger.kernel.org
Reported-by: "Sabrina Dubroca" <sd@queasysnail.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/mgag200/mgag200_fb.c')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_fb.c b/drivers/gpu/drm/mgag200/mgag200_fb.c index f9adc27ef32a..13b7dd83faa9 100644 --- a/drivers/gpu/drm/mgag200/mgag200_fb.c +++ b/drivers/gpu/drm/mgag200/mgag200_fb.c @@ -41,7 +41,7 @@ static void mga_dirty_update(struct mga_fbdev *mfbdev, * then the BO is being moved and we should * store up the damage until later. */ - if (!drm_can_sleep()) + if (drm_can_sleep()) ret = mgag200_bo_reserve(bo, true); if (ret) { if (ret != -EBUSY) |