mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
Merge "msm: mdss: hdmi: Proper HDMI feature check"
This commit is contained in:
commit
47a8a27cda
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue