diff options
author | Zheyu Ma <zheyuma97@gmail.com> | 2021-11-23 05:21:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-23 15:15:53 +0300 |
commit | b82d71c0f84a2e5ccaaa7571dfd5c69e0e2cfb4a (patch) | |
tree | 52893a72ed379f0292a87240a8363e559ebccd1f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c75a9ad43691de040bead75f1924928111571f9c (diff) | |
download | linux-b82d71c0f84a2e5ccaaa7571dfd5c69e0e2cfb4a.tar.xz |
net: chelsio: cxgb4vf: Fix an error code in cxgb4vf_pci_probe()
During the process of driver probing, probe function should return < 0
for failure, otherwise kernel will treat value == 0 as success.
Therefore, we should set err to -EINVAL when
adapter->registered_device_map is NULL. Otherwise kernel will assume
that driver has been successfully probed and will cause unexpected
errors.
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions