Commit ba785600 authored by Ruijun Ge's avatar Ruijun Ge Committed by Zheng Zengkai
Browse files

PCI: fix the wrong class type for HiSilicon NP 5896

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


CVE: NA

-----------------------------------------------------------------------------

The following patch set the class type as 'PCI_BASE_CLASS_NETWORK'. But
'PCI_BASE_CLASS_NETWORK' is actually the higher 8 bits of the class type
of a network device. We should set it as 'PCI_CLASS_NETWORK_ETHERNET'.
This patch fixes it.

Fixes: ba8bc9c15d20 ("PCI: Add quirk for hisilicon NP devices 5896")

Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarRuijun Ge <geruijun@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 1b12fe25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment