diff options
| author | Soumya Managoli <smanag@codeaurora.org> | 2019-09-26 18:28:33 +0530 |
|---|---|---|
| committer | Soumya Managoli <smanag@codeaurora.org> | 2019-10-17 16:26:36 +0530 |
| commit | 27c90ea8af60f48cf043686cbd7c20f403e2d7b0 (patch) | |
| tree | ebceef02c36e2976db1b0bd702edd45a049a38e9 /drivers/md/raid1.c | |
| parent | c65b9585249986588b205fbed6eda20924423e72 (diff) | |
ASoC: Fix possible overflow in routing driver
The reg in soc_mixer_control is 32-bit. When using
SOC_SINGLE_EXT, the value of FE DAI ID which is passed
as shift(to be operated on the reg) may be more than 31,
which may cause overflow.
Use SOC_DOUBLE_EXT instead of SOC_SINGLE_EXT so that the
reg field can be set to SOC_NO_PM to avoid any DAPM operation,
while passing BE and FE IDs in shift and rshift fields. And
these values can be retrieve in get/put functions and use them.
This is to avoid any possible overflow in DAPM operation.
Change-Id: I17fa4e059889ae725e6f015a779f518e6d0a813f
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions
