Skip to content
Unverified Commit 5947b272 authored by Zheyu Ma's avatar Zheyu Ma Committed by Mark Brown
Browse files

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: default avatarZheyu Ma <zheyuma97@gmail.com>
Link: https://lore.kernel.org/r/20220409143950.2570186-1-zheyuma97@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 90b76a3c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment