Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/nouveau/bios/init: fix thinko in INIT_CONFIGURE_MEM

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

+1 -1
+1 -1
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
··· 1451 1451 data = init_rdvgai(init, 0x03c4, 0x01); 1452 1452 init_wrvgai(init, 0x03c4, 0x01, data | 0x20); 1453 1453 1454 - while ((addr = nv_ro32(bios, sdata)) != 0xffffffff) { 1454 + for (; (addr = nv_ro32(bios, sdata)) != 0xffffffff; sdata += 4) { 1455 1455 switch (addr) { 1456 1456 case 0x10021c: /* CKE_NORMAL */ 1457 1457 case 0x1002d0: /* CMD_REFRESH */