drm/nouveau/bios: make jump conditional
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 6 Jan 2014 01:07:02 +0000 (20:07 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Jan 2014 03:37:55 +0000 (13:37 +1000)
commit6d60792ec059d9f2139828f9f017679abb81aa73
tree7044f0263c615c2ee06fd7f560c3aa19ab325218
parent6e9cbb40d2be7e0693d6b1b0e2790277a366c471
drm/nouveau/bios: make jump conditional

This fixes a hang in VBIOS scripts of the form "condition; jump".
The jump used to always be executed, while now it will only be
executed if the condition is true.

See https://bugs.freedesktop.org/show_bug.cgi?id=72943

Reported-by: Darcy BrĂ¡s da Silva <dardevelin@cidadecool.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/core/subdev/bios/init.c