Displaying 1 result from an estimated 1 matches for "9d4d196".
Did you mean:
94196
2015 May 20
3
[PATCH] ram/gf100-: error out if a ridiculous amount of vram is detected
...d,
fail device init.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: stable at kernel.org
---
drm/nouveau/nvkm/subdev/fb/ramgf100.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drm/nouveau/nvkm/subdev/fb/ramgf100.c b/drm/nouveau/nvkm/subdev/fb/ramgf100.c
index de9f395..9d4d196 100644
--- a/drm/nouveau/nvkm/subdev/fb/ramgf100.c
+++ b/drm/nouveau/nvkm/subdev/fb/ramgf100.c
@@ -545,6 +545,12 @@ gf100_ram_create_(struct nvkm_object *parent, struct nvkm_object *engine,
}
}
+ /* if over 1TB of VRAM is reported, something went very wrong, bail */
+ if (ram->size > (...