Skip to content
Snippets Groups Projects
Commit 53482bca authored by Xiongfeng Wang's avatar Xiongfeng Wang Committed by 谢秀奇
Browse files

PCI: check BIR before mapping MSI-X Table


hulk inclusion
category: bugfix
bugzilla: 4390
CVE: NA
-------------------

We use 'bir' as the index of array resource[DEVICE_COUNT_RESOURCE].
Wrong 'bir' will cause access out of range. This patch add a check for
'bir'.

Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 4ba8a782
No related branches found
No related tags found
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