Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ath10k: add missing error return code in ath10k_pci_probe()
[ Upstream commit e2783e2 ] 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: c0c378f ("ath10k: remove target soc ps code") Fixes: 7505f7c ("ath10k: create a chip revision whitelist") Fixes: f8914a1 ("ath10k: restore QCA9880-AR1A (v1) detection") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210522105822.1091848-3-yangyingliang@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information