drm/nouveau/bios/bitP: check that table is long enough for optional pointers
authorBen Skeggs <bskeggs@redhat.com>
Mon, 10 Apr 2017 22:25:22 +0000 (08:25 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 29 Apr 2017 12:39:23 +0000 (22:39 +1000)
commita7cb78bab3671dbad08e5b2f5fd83a6dbda90fe5
treef744107295dfc8a9841f835b838b420992b8bae8
parenteef4988ab4c1a99e88e535502a67763a78d51515
drm/nouveau/bios/bitP: check that table is long enough for optional pointers

Fixes OOB VBIOS accesses on some boards.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vpstate.c