Displaying 1 result from an estimated 1 matches for "6afd82e".
Did you mean:
1a6d82e
2009 Sep 18
1
[PATCH] drm/nouveau: fix WITHIN macro off by one
...ready out of range. X must be stricly less.
Signed-off-by: Pekka Paalanen <pq at iki.fi>
---
drivers/gpu/drm/nouveau/nouveau_bios.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 6afd82e..539835a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -300,7 +300,7 @@ valid_reg(struct nvbios *bios, uint32_t reg)
if (dev_priv->card_type >= NV_50)
return 1;
- #define WITHIN(x, y, z) ((x >= y) && (x <= y + z))
+ #d...