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)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 27 Jul 2015 08:56:10 +0000 (18:56 +1000)
commitd108142c0840ce389cd9898aa76943b3fb430b83
treef9813092cb8d50c633c806a81effa79f86dc1286
parentd31b11d85814ff669cfeb93c0f85b9d659a85ef8
drm/nouveau/fbcon/nv11-: correctly account for ring space usage

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>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_fbcon.c