diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2022-02-25 15:37:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-08 21:12:50 +0300 |
commit | 50948cea504c964b6439135c0301aa1ddcb6379e (patch) | |
tree | 325bb4f8111133f3d59fc1173b1a78ef1f261694 /drivers/spi/spi-davinci.c | |
parent | ea3d3c36a4fa4596f5912f3f9688df4de0e33ede (diff) | |
download | linux-50948cea504c964b6439135c0301aa1ddcb6379e.tar.xz |
net: chelsio: cxgb3: check the return value of pci_find_capability()
[ Upstream commit 767b9825ed1765894e569a3d698749d40d83762a ]
The function pci_find_capability() in t3_prep_adapter() can fail, so its
return value should be checked.
Fixes: 4d22de3e6cc4 ("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>
Diffstat (limited to 'drivers/spi/spi-davinci.c')
0 files changed, 0 insertions, 0 deletions