aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2013-10-04 17:23:20 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2013-10-04 17:23:18 -0700
commit38f60a5883ab63d38a98b8db7c94d25e5570eef8 (patch)
treea93916d6a9b754cf0dffd1c04ba581bfdd43319b
parentea7db140161fd6f2b05e0be4c3cb080e82ad2faf (diff)
parent3a554d10d1231fc8bed0a2b29a611682c57d76ef (diff)
Merge "msm: mdss: hdmi: Proper HDMI feature check"
-rw-r--r--drivers/video/msm/mdss/mdss_hdmi_tx.c2
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;
}