platform: msm: Rectify buffer overread in QPNP-PWM driver

Remove the bug in the buffer-read loop that reads beyond
the size of the input buffer.

Change-Id: Iecb420d2a5f0159b7b2eb0b4a5a4feb66c427d19
Signed-off-by: Jay Chokshi <jchokshi@codeaurora.org>
diff --git a/drivers/platform/msm/qpnp-pwm.c b/drivers/platform/msm/qpnp-pwm.c
index 852e8c5..4cbedd7 100644
--- a/drivers/platform/msm/qpnp-pwm.c
+++ b/drivers/platform/msm/qpnp-pwm.c
@@ -479,7 +479,7 @@
 		return -EINVAL;
 	}
 
-	for (i = 0; i <= lut->list_len; i++) {
+	for (i = 0; i < lut->list_len; i++) {
 		if (raw_value)
 			pwm_value = duty_pct[i];
 		else