projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba85883
)
ASoC: amd: acp: Fix NULL pointer deref in acp_i2s_set_tdm_slot
author
Venkata Prasad Potturu
<venkataprasad.potturu@amd.com>
Fri, 25 Apr 2025 06:01:40 +0000
(11:31 +0530)
committer
Mark Brown
<broonie@kernel.org>
Fri, 25 Apr 2025 12:35:06 +0000
(13:35 +0100)
Update chip data using dev_get_drvdata(dev->parent) to fix
NULL pointer deref in acp_i2s_set_tdm_slot.
Fixes:
cd60dec8994c
("ASoC: amd: acp: Refactor TDM slots selction based on acp revision id")
Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link:
https://patch.msgid.link/20250425060144.1773265-2-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/amd/acp/acp-i2s.c
b/sound/soc/amd/acp/acp-i2s.c
index
a38409d
..
70fa54d
100644
(file)
--- a/
sound/soc/amd/acp/acp-i2s.c
+++ b/
sound/soc/amd/acp/acp-i2s.c
@@
-97,7
+97,7
@@
static int acp_i2s_set_tdm_slot(struct snd_soc_dai *dai, u32 tx_mask, u32 rx_mas
struct acp_stream *stream;
int slot_len, no_of_slots;
- chip = dev_get_
platdata(dev
);
+ chip = dev_get_
drvdata(dev->parent
);
switch (slot_width) {
case SLOT_WIDTH_8:
slot_len = 8;