summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/northbridge/intel/gm45/gma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/northbridge/intel/gm45/gma.c b/src/northbridge/intel/gm45/gma.c
index 7df9106f2f..804382224d 100644
--- a/src/northbridge/intel/gm45/gma.c
+++ b/src/northbridge/intel/gm45/gma.c
@@ -67,7 +67,8 @@ u16 get_blc_pwm_freq_value(const char *edid_ascii_string)
int i;
int blc_array_len;
- if (blc_pwm_freq > 0)
+ /* Prevent null-deref on strcmp() below */
+ if (blc_pwm_freq > 0 || !edid_ascii_string)
return blc_pwm_freq;
blc_array_len = get_blc_values(&blc_pwm);