Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a554d10 authored by Ajay Singh Parmar's avatar Ajay Singh Parmar
Browse files

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: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent 66619aa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}