]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/nouveau/fbcon/nv11-: correctly account for ring space usage
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 29 Jun 2015 08:07:20 +0000 (04:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Aug 2015 19:21:59 +0000 (12:21 -0700)
commit49aed64d0a9e9bce6e848440ed8bcce2d8fab558
tree70a95720d340cc5c2fac7ff62d8c93e1f9d547b4
parentde60f552147f87956aa3a56ecb410e4f583dc99d
drm/nouveau/fbcon/nv11-: correctly account for ring space usage

commit d108142c0840ce389cd9898aa76943b3fb430b83 upstream.

The RING_SPACE macro accounts how much space is used up so it's
important to ask it for the right amount. Incorrect accounting of this
can cause page faults down the line as writes are attempted outside of
the ring.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nv04_fbcon.c