drm/msm/sde: use constant size array in sde_watchdog_te_status
Prevent out of bounds access when using sde_watchdog_te_status
structure by using a constantly sized array definition. This
matches the usage convention in the rest of the sde_hw modules.
Change-Id: I44a94cc23a9d87e14ec7f6d1c28b36899cce11bb
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
diff --git a/drivers/gpu/drm/msm/sde/sde_hw_top.h b/drivers/gpu/drm/msm/sde/sde_hw_top.h
index 9cb4494..faf25c7 100644
--- a/drivers/gpu/drm/msm/sde/sde_hw_top.h
+++ b/drivers/gpu/drm/msm/sde/sde_hw_top.h
@@ -80,12 +80,12 @@
* struct sde_watchdog_te_status - configure watchdog timer to generate TE
* @pp_count: number of ping pongs active
* @frame_rate: Display frame rate
- * @ppnumber: base address of ping pong info
+ * @ppnumber: ping pong index array
*/
struct sde_watchdog_te_status {
u32 pp_count;
u32 frame_rate;
- u32 ppnumber[];
+ u32 ppnumber[PINGPONG_MAX];
};
/**