diff options
author | Yang Yingliang <[email protected]> | 2021-05-31 17:41:28 +0300 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2021-06-12 13:34:31 +0300 |
commit | e2783e2f39ba99178dedfc1646d5cc0979d1bab3 (patch) | |
tree | 833f3c7c30a21532e42b82757372512be7b4fc47 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 9e88dd431d2345acdb7a549f3e88aaf4c2a307a1 (diff) |
ath10k: add missing error return code in ath10k_pci_probe()
When chip_id is not supported, the resources will be freed
on path err_unsupported, these resources will also be freed
when calling ath10k_pci_remove(), it will cause double free,
so return -ENODEV when it doesn't support the device with wrong
chip_id.
Fixes: c0c378f9907c ("ath10k: remove target soc ps code")
Fixes: 7505f7c3ec1d ("ath10k: create a chip revision whitelist")
Fixes: f8914a14623a ("ath10k: restore QCA9880-AR1A (v1) detection")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Yang Yingliang <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions