]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: hda: tas2781: Fix wrong reference of tasdevice_priv
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Aug 2025 05:19:01 +0000 (07:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Aug 2025 05:23:23 +0000 (07:23 +0200)
commit3f4422e7c9436abf81a00270be7e4d6d3760ec0e
tree7294421cb617d5eb2a736ae95ebb2e2b89102509
parentf4b3cef55f5f96fdb4e7f9ca90b7d6213689faeb
ALSA: hda: tas2781: Fix wrong reference of tasdevice_priv

During the conversion to unify the calibration data management, the
reference to tasdevice_priv was wrongly set to h->hda_priv instead of
h->priv.  This resulted in memory corruption and crashes eventually.
Unfortunately it's a void pointer, hence the compiler couldn't know
that it's wrong.

Fixes: 4fe238513407 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib")
Link: https://bugzilla.suse.com/show_bug.cgi?id=1248270
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20250820051902.4523-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/codecs/side-codecs/tas2781_hda_i2c.c