]> Git Repo - linux.git/commit
ASoC: SOF: Intel: Check the bar size before remapping
authorZheyu Ma <[email protected]>
Sat, 9 Apr 2022 14:39:50 +0000 (22:39 +0800)
committerMark Brown <[email protected]>
Wed, 13 Apr 2022 12:47:40 +0000 (13:47 +0100)
commit5947b2726beb61fe7911580f239222ec9c4f6967
treedb2533841b67624d940c8908ed6f4b47fff8bf02
parent90b76a3cb9bf208286851560cfc70830c91c1d3f
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/sof/intel/pci-tng.c
This page took 0.05363 seconds and 4 git commands to generate.