Forwarded: Re: [syzbot] [ath10k?] WARNING in ath10k_pci_probe

syzbot posted 1 patch 1 month, 3 weeks ago
Forwarded: Re: [syzbot] [ath10k?] WARNING in ath10k_pci_probe
Posted by syzbot 1 month, 3 weeks ago
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.

***

Subject: Re: [syzbot] [ath10k?] WARNING in ath10k_pci_probe
Author: rihyeon8648@gmail.com

#syz test

diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 335bc7c488e4..08c169bb94f6 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -3594,7 +3594,8 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
 		targ_cpu_to_ce_addr = ath10k_pci_qca6174_targ_cpu_to_ce_addr;
 		break;
 	default:
-		WARN_ON(1);
+		dev_err(&pdev->dev, "unsupported device id 0x%04x\n",
+			pdev->device);
 		return -EOPNOTSUPP;
 	}