Files
linux/drivers/net/ethernet/chelsio/cxgb3
Jia-Ju Bai 50948cea50 net: chelsio: cxgb3: check the return value of pci_find_capability()
[ Upstream commit 767b9825ed ]

The function pci_find_capability() in t3_prep_adapter() can fail, so its
return value should be checked.

Fixes: 4d22de3e6c ("Add support for the latest 1G/10G Chelsio adapter, T3")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-03-08 19:12:50 +01:00
..
2020-08-23 17:36:59 -05:00
2019-04-01 15:01:46 -07:00
2021-09-07 10:00:07 +01:00