You need to sign in or sign up before continuing.
提交 cc87509d 编写于 作者: D Dave Airlie

qxl: avoid an oops in the deferred io code.

If we are using deferred io due to plymouth or X.org fbdev driver
we will oops in memcpy due to this pointless multiply here,

removing it fixes fbdev to start and not oops.

Cc: stable@vger.kernel.org
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 9d6104e0
...@@ -108,7 +108,7 @@ static void qxl_fb_dirty_flush(struct fb_info *info) ...@@ -108,7 +108,7 @@ static void qxl_fb_dirty_flush(struct fb_info *info)
u32 x1, x2, y1, y2; u32 x1, x2, y1, y2;
/* TODO: hard coding 32 bpp */ /* TODO: hard coding 32 bpp */
int stride = qfbdev->qfb.base.pitches[0] * 4; int stride = qfbdev->qfb.base.pitches[0];
x1 = qfbdev->dirty.x1; x1 = qfbdev->dirty.x1;
x2 = qfbdev->dirty.x2; x2 = qfbdev->dirty.x2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册