Merge "msm: mdss: hdmi: Proper HDMI feature check"

This commit is contained in:
Linux Build Service Account 2013-10-06 08:38:57 -07:00 committed by Gerrit - the friendly Code Review server
commit 47a8a27cda

View file

@ -327,7 +327,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;
}