diff options
author | Zheyu Ma <zheyuma97@gmail.com> | 2022-04-09 17:39:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-13 15:47:40 +0300 |
commit | 5947b2726beb61fe7911580f239222ec9c4f6967 (patch) | |
tree | db2533841b67624d940c8908ed6f4b47fff8bf02 /sound/soc/ti/omap-twl4030.c | |
parent | 90b76a3cb9bf208286851560cfc70830c91c1d3f (diff) | |
download | linux-5947b2726beb61fe7911580f239222ec9c4f6967.tar.xz |
ASoC: SOF: Intel: Check the bar size before remapping
The driver should use the pci_resource_len() to get the actual length of
pci bar, and compare it with the expect value. If the bar size is too
small (such as a broken device), the driver should return an error.
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Link: https://lore.kernel.org/r/20220409143950.2570186-1-zheyuma97@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ti/omap-twl4030.c')
0 files changed, 0 insertions, 0 deletions