diff options
| author | Nikita Zhandarovich <[email protected]> | 2025-01-16 14:24:36 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-02-03 00:34:17 +0000 |
| commit | a8c9a453387640dbe45761970f41301a6985e7fa (patch) | |
| tree | 5c45027b2bdb650fb783daafeb5dfb9820e12e73 /net/unix/af_unix.c | |
| parent | Linux 6.14-rc1 (diff) | |
| download | kernel-a8c9a453387640dbe45761970f41301a6985e7fa.tar.gz kernel-a8c9a453387640dbe45761970f41301a6985e7fa.zip | |
ASoC: fsl_micfil: Enable default case in micfil_set_quality()
If 'micfil->quality' received from micfil_quality_set() somehow ends
up with an unpredictable value, switch() operator will fail to
initialize local variable qsel before regmap_update_bits() tries
to utilize it.
While it is unlikely, play it safe and enable a default case that
returns -EINVAL error.
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes: bea1d61d5892 ("ASoC: fsl_micfil: rework quality setting")
Cc: [email protected]
Signed-off-by: Nikita Zhandarovich <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
