Commit 87b693cf authored by Xiongfeng Wang's avatar Xiongfeng Wang
Browse files

PCI: check BIR before mapping MSI-X Table

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8XWD4


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 avatarJialin Zhang <zhangjialin11@huawei.com>
 Conflicts:
	drivers/pci/msi.c
Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
parent 070dcfd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment