summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/baytrail/gfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/baytrail/gfx.c b/src/soc/intel/baytrail/gfx.c
index 5d6d504a86..d2cb589db8 100644
--- a/src/soc/intel/baytrail/gfx.c
+++ b/src/soc/intel/baytrail/gfx.c
@@ -48,7 +48,7 @@ static void gfx_lock_pcbase(struct device *dev)
gms = pci_read_config32(dev, GGC) & GGC_GSM_SIZE_MASK;
gms >>= 3;
- if (gms > ARRAY_SIZE(gms_size_map))
+ if (gms >= ARRAY_SIZE(gms_size_map))
return;
gmsize = gms_size_map[gms];