summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2026-11-19 14:10:44 +0100
committerMark Brown <broonie@kernel.org>2026-11-19 17:34:26 +0000
commitf66297be665c067d2e96da9ce1c5767b587e17b7 (patch)
tree8c2c534f7d99fa1b161d3982c5983d69a0029fbd /rust/kernel/alloc/allocator
parent91ad9522cca792bce350b6be5800fb0f82432dbf (diff)
ASoC: tas2781: Avoid possible zero-division
The calibration preprocessing code in TAS2781 codec driver has a division with the value calculated from the firmware data, and when a malformed firmware is given, this could lead to a zero-division error. We already hit and addressed such a case (commit 8dbab764f1e0 "ALSA: hda/tas2781: Only accept CRC-less V1 data if all entries are valid") which was fixed in the caller side (HD-audio TAS2781 driver). For avoiding such a breakage in future, let's add a safety check for zero division in the callee side, too. Fixes: 05ac3846ffe5 ("ALSA: hda/tas2781: A workaround solution to lower-vol issue among lower calibrated-impedance micro-speaker on TAS2781") Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20261119131045.2152868-1-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions