aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorVlad Karpovich <[email protected]>2023-08-15 12:29:08 -0500
committerMark Brown <[email protected]>2023-08-15 19:23:01 +0100
commit7ac1102b227b36550452b663fd39ab1c09378a95 (patch)
tree65225d036962a2608e3ad962e717a601b3305948 /drivers/fpga/fpga-bridge.c
parent49a4a8d1261230378a8931d0859329057686b6eb (diff)
firmware: cs_dsp: Fix new control name check
Before adding a new FW control, its name is checked against existing controls list. But the string length in strncmp used to compare controls names is taken from the list, so if beginnings of the controls are matching, then the new control is not created. For example, if CAL_R control already exists, CAL_R_SELECTED is not created. The fix is to compare string lengths as well. Fixes: 6477960755fb ("ASoC: wm_adsp: Move check for control existence") Signed-off-by: Vlad Karpovich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions