summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorBaojun Xu <baojun.xu@ti.com>2025-07-07 12:05:13 +0300
committerTakashi Iwai <tiwai@suse.de>2025-07-07 12:23:28 +0300
commit85e323bdbe28d4638aaefd8d9192763874efe9b0 (patch)
tree9595711e3736474de0595eb24bfb5ab69c3a55f9 /net/lapb/lapb_timer.c
parent4f5b1aa2e40651c8ec196c15e6e8c07e3a0314ca (diff)
downloadlinux-85e323bdbe28d4638aaefd8d9192763874efe9b0.tar.xz
ALSA: hda/tas2781: Fix calibration data parser issue
We will copy calibration data from position behind to front. We have created a variable (tmp_val) point on top of calibration data buffer, and tmp_val[1] is max of node number in original calibration data structure, it will be overwritten after first data copy, so can't be used as max node number check in for loop. So we create a new variable to save max of node number (tmp_val[1]), used to check if max node number was reached in for loop. And a point need to be increased to point at calibration data in node. Data saved position also need to be increased one byte. Fixes: 4fe238513407 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib") Signed-off-by: Baojun Xu <baojun.xu@ti.com> Link: https://patch.msgid.link/20250707090513.1462-1-baojun.xu@ti.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions