drm/nouveau: fix for disabled fbdev emulation
Hello, after this commit: commitf045f459d9
Author: Ben Skeggs <bskeggs@redhat.com> Date: Thu Jun 2 12:23:31 2016 +1000 drm/nouveau/fbcon: fix out-of-bounds memory accesses kernel started to oops when loading nouveau module when using GTX 780 Ti video adapter. This patch fixes the problem. Bug report: https://bugzilla.kernel.org/show_bug.cgi?id=120591 Signed-off-by: Dmitrii Tcvetkov <demfloro@demfloro.ru> Suggested-by: Ilia Mirkin <imirkin@alum.mit.edu> Fixes:f045f459d9
("nouveau_fbcon_init()") Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
6aa85f1129
commit
52dfcc5ccf
|
@ -552,6 +552,7 @@ nouveau_fbcon_init(struct drm_device *dev)
|
||||||
if (ret)
|
if (ret)
|
||||||
goto fini;
|
goto fini;
|
||||||
|
|
||||||
|
if (fbcon->helper.fbdev)
|
||||||
fbcon->helper.fbdev->pixmap.buf_align = 4;
|
fbcon->helper.fbdev->pixmap.buf_align = 4;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue