mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
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
This commit is contained in:
parent
6e9cbb40d2
commit
6d60792ec0
@ -1294,7 +1294,11 @@ init_jump(struct nvbios_init *init)
|
||||
u16 offset = nv_ro16(bios, init->offset + 1);
|
||||
|
||||
trace("JUMP\t0x%04x\n", offset);
|
||||
init->offset = offset;
|
||||
|
||||
if (init_exec(init))
|
||||
init->offset = offset;
|
||||
else
|
||||
init->offset += 3;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user