]> git.dujemihanovic.xyz Git - linux.git/commit
ALSA: hda: cs35l41: Do not allow uninitialised variables to be freed
authorStefan Binding <sbinding@opensource.cirrus.com>
Tue, 19 Dec 2023 16:22:31 +0000 (16:22 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Dec 2023 08:23:51 +0000 (09:23 +0100)
commited7326a24a1a9af65fafefd86b505e7c3b968f6d
tree8c71d560209b990ba41f4dd3438a8fa661054e2a
parent092a1362470937e46947ccdc6fe4c8a9b72f3f49
ALSA: hda: cs35l41: Do not allow uninitialised variables to be freed

Initialise the variables to NULL so that they cannot be uninitialised
when devm_kfree is called.

Found by static analysis.

Fixes: 8c4c216db8fb ("ALSA: hda: cs35l41: Add config table to support many laptops without _DSD")
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231219162232.790358-2-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda_property.c