diff options
author | Benjamin Bara <[email protected]> | 2024-10-08 13:36:14 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-10-08 13:52:23 +0100 |
commit | 3fe9f5882cf71573516749b0bb687ef88f470d1d (patch) | |
tree | c9d0c55cf6f3a1115f60de32407eba8c6ef6420b /lib/crypto/mpi/mpiutil.c | |
parent | 9814c1447f9cc67c9e88e0a4423de3a496078360 (diff) |
ASoC: dapm: avoid container_of() to get component
The current implementation does not work for widgets of DAPMs without
component, as snd_soc_dapm_to_component() requires it. If the widget is
directly owned by the card, e.g. as it is the case for the tegra
implementation, the call leads to UB. Therefore directly access the
component of the widget's DAPM to be able to check if a component is
available.
Fixes: f82eb06a40c8 ("ASoC: tegra: machine: Handle component name prefix")
Cc: [email protected] # v6.7+
Signed-off-by: Benjamin Bara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions