Re: [PATCH 1/2] ALSA: hda/ca0132: set codec->spec to NULL after freeing

From: Takashi Iwai

Date: Wed Aug 12 2026 - 01:35:32 EST


On Wed, 12 Aug 2026 05:30:19 +0200,
songxiebing wrote:
>
> From: Bob Song <songxiebing@xxxxxxxxxx>
>
> ca0132_free() and dbpro_free() call kfree(codec->spec) without
> setting codec->spec to NULL afterward, leaving a dangling pointer.
> Set it to NULL.
>
> Signed-off-by: Bob Song <songxiebing@xxxxxxxxxx>

Applied both patches to for-next branch. Thanks.


Takashi