mirror of https://gitee.com/openkylin/linux.git
drm/nouveau/bios: fix thinko when parsing extdev table
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
4894f6628e
commit
e897242162
|
@ -90,7 +90,7 @@ nvbios_extdev_find(struct nouveau_bios *bios, enum nvbios_extdev_type type,
|
|||
u16 entry;
|
||||
|
||||
i = 0;
|
||||
while (!(entry = nvbios_extdev_entry(bios, i++, &ver, &len))) {
|
||||
while ((entry = nvbios_extdev_entry(bios, i++, &ver, &len))) {
|
||||
extdev_parse_entry(bios, entry, func);
|
||||
if (func->type == type)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue