diff options
| author | Ajay Singh Parmar <aparmar@codeaurora.org> | 2013-10-02 14:05:30 -0700 |
|---|---|---|
| committer | Ajay Singh Parmar <aparmar@codeaurora.org> | 2013-10-02 14:09:15 -0700 |
| commit | 3a554d10d1231fc8bed0a2b29a611682c57d76ef (patch) | |
| tree | 316cff28b10c666ec16ca35cdfa5bcf12c190e1c | |
| parent | 66619aa726269ef4dd18e39fa8056f90a635a11c (diff) | |
msm: mdss: hdmi: Proper HDMI feature check
Checks for the proper HDMI feature before providing the
corresponding feature data to avoid invalid memory access.
CRs-Fixed: 542785
Change-Id: I943bee9e843e0504effdfddfaf2dea82c22388f6
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
| -rw-r--r-- | drivers/video/msm/mdss/mdss_hdmi_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/msm/mdss/mdss_hdmi_tx.c b/drivers/video/msm/mdss/mdss_hdmi_tx.c index 91392295f55..0c259c93e8c 100644 --- a/drivers/video/msm/mdss/mdss_hdmi_tx.c +++ b/drivers/video/msm/mdss/mdss_hdmi_tx.c @@ -438,7 +438,7 @@ void *hdmi_get_featuredata_from_sysfs_dev(struct device *device, { struct hdmi_tx_ctrl *hdmi_ctrl = NULL; - if (!device || feature_type > HDMI_TX_FEAT_MAX) { + if (!device || feature_type >= HDMI_TX_FEAT_MAX) { DEV_ERR("%s: invalid input\n", __func__); return NULL; } |
