drm/nouveau/bios: make jump conditional
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 6 Jan 2014 01:07:02 +0000 (20:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:28:51 +0000 (15:28 -0800)
commite45410185006f748b0d48292550cfad2e37f47a5
treeaa0f42132065cde094887c2bdc715d16c0fb7dfa
parentb251b2f4a378b977f7d203e6a269b2fe28af3330
drm/nouveau/bios: make jump conditional

commit 6d60792ec059d9f2139828f9f017679abb81aa73 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/core/subdev/bios/init.c