search for: valid_reg

Displaying 2 results from an estimated 2 matches for "valid_reg".

Did you mean: valid_ref
2012 Mar 10
6
[Bug 47182] New: GeFroce 6150SE nForce 430: misaligned reg 0x0060081D
https://bugs.freedesktop.org/show_bug.cgi?id=47182 Bug #: 47182 Summary: GeFroce 6150SE nForce 430: misaligned reg 0x0060081D Classification: Unclassified Product: xorg Version: 7.6 (2010.12) Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium
2009 Sep 18
1
[PATCH] drm/nouveau: fix WITHIN macro off by one
...ios.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)) + #define WITHIN(x, y, z) ((x >= y) && (x < y + z)) if (WITHIN(reg, NV_PMC_OFFSET, NV_PMC_SIZE)) return 1; if (WITHIN(r...