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

Commit 259ef0ea authored by Michael Bohan's avatar Michael Bohan
Browse files

sensors: sensors_ssc: Add necessary NULL terminator to match


table

The following change mistakenly removed a NULL terminator from
the of_match_id table.

  commit 2dbb824a
  Author: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
  Date: Wed Jan 29 17:51:14 2014 -0800

  ARM: msm: Clean up sensor ADSP driver; OCMEM is no longer used

Doing so allows for memory corruption when walking the table.

Change-Id: I8ecc29da9c70298b410d21da89fe6d5c8a0322e9
Signed-off-by: default avatarMichael Bohan <mbohan@codeaurora.org>
parent ce80330c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -158,7 +158,8 @@ static int sensors_ssc_remove(struct platform_device *pdev)
}

static const struct of_device_id msm_ssc_sensors_dt_match[] = {
	{.compatible = "qcom,msm-ssc-sensors"}
	{.compatible = "qcom,msm-ssc-sensors"},
	{},
};
MODULE_DEVICE_TABLE(of, msm_ssc_sensors_dt_match);