diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-06-02 12:23:31 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-06-02 13:53:44 +1000 |
commit | f045f459d925138fe7d6193a8c86406bda7e49da (patch) | |
tree | f00acbaf667b587b9e0cbdcb00d16826cbc12429 /drivers/gpu/drm/nouveau/nouveau_fbcon.c | |
parent | 383d0a419f8e63e3d65e706c3c515fa9505ce364 (diff) | |
download | linux-f045f459d925138fe7d6193a8c86406bda7e49da.tar.bz2 |
drm/nouveau/fbcon: fix out-of-bounds memory accesses
Reported by KASAN.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fbcon.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_fbcon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index 57aaf98a26f9..300ea03be8f0 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -552,6 +552,7 @@ nouveau_fbcon_init(struct drm_device *dev) if (ret) goto fini; + fbcon->helper.fbdev->pixmap.buf_align = 4; return 0; fini: |