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

Commit a1d5a4cb authored by Dipen Parmar's avatar Dipen Parmar
Browse files

thermal: qpnp-adc-tm: Fix format specifier in snprintf



Add format specifier in snprintf to avoid security
vulnerability issues.

Change-Id: I6ea67633348341267e0646912a6b428709410c78
Signed-off-by: default avatarDipen Parmar <dipenp@codeaurora.org>
parent 6a856af1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1886,7 +1886,7 @@ static int qpnp_adc_tm_probe(struct spmi_device *spmi)
			pr_debug("thermal node%x\n", btm_channel_num);
			chip->sensor[sen_idx].mode = THERMAL_DEVICE_DISABLED;
			chip->sensor[sen_idx].thermal_node = true;
			snprintf(name, sizeof(name),
			snprintf(name, sizeof(name), "%s",
				chip->adc->adc_channels[sen_idx].name);
			chip->sensor[sen_idx].meas_interval =
				QPNP_ADC_TM_MEAS_INTERVAL;