* [PATCH v1] Bluetooth: btintel_pcie: Fix null pointer dereference in remove
@ 2026-06-01 10:26 Chandrashekar Devegowda
2026-06-01 12:47 ` [v1] " bluez.test.bot
2026-06-01 19:10 ` [PATCH v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Chandrashekar Devegowda @ 2026-06-01 10:26 UTC (permalink / raw)
To: linux-bluetooth
Cc: linux-pci, bhelgaas, ravishankar.srivatsa, chethan.tumkur.narayan,
Chandrashekar Devegowda
Add a NULL check for pci_get_drvdata() in btintel_pcie_remove() to
prevent a null pointer dereference. This can occur when
btintel_pcie_remove() is called concurrently from the PLDR
device_reprobe path on another CPU, after pci_set_drvdata(pdev, NULL)
has already been executed.
Fixes: 8c0693e29dba ("Bluetooth: btintel_pcie: Support Product level reset")
Signed-off-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
---
drivers/bluetooth/btintel_pcie.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
index eba563b66090..eeaefffaaf6b 100644
--- a/drivers/bluetooth/btintel_pcie.c
+++ b/drivers/bluetooth/btintel_pcie.c
@@ -2694,6 +2694,10 @@ static void btintel_pcie_remove(struct pci_dev *pdev)
struct btintel_pcie_data *data;
data = pci_get_drvdata(pdev);
+ if (!data) {
+ BT_WARN("PCI driver data is NULL, aborting remove");
+ return;
+ }
/* Cancel pending reset work. Skip only when remove() is called from
* within the reset work itself (PLDR device_reprobe path) to avoid
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* RE: [v1] Bluetooth: btintel_pcie: Fix null pointer dereference in remove
2026-06-01 10:26 [PATCH v1] Bluetooth: btintel_pcie: Fix null pointer dereference in remove Chandrashekar Devegowda
@ 2026-06-01 12:47 ` bluez.test.bot
2026-06-01 19:10 ` [PATCH v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-06-01 12:47 UTC (permalink / raw)
To: linux-bluetooth, chandrashekar.devegowda
[-- Attachment #1: Type: text/plain, Size: 988 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1103946
---Test result---
Test Summary:
CheckPatch PASS 0.68 seconds
VerifyFixes PASS 0.12 seconds
VerifySignedoff PASS 0.11 seconds
GitLint PASS 0.29 seconds
SubjectPrefix PASS 0.11 seconds
BuildKernel PASS 26.41 seconds
CheckAllWarning PASS 28.96 seconds
CheckSparse PASS 27.71 seconds
BuildKernel32 PASS 25.65 seconds
TestRunnerSetup PASS 568.66 seconds
IncrementalBuild PASS 24.69 seconds
https://github.com/bluez/bluetooth-next/pull/264
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] Bluetooth: btintel_pcie: Fix null pointer dereference in remove
2026-06-01 10:26 [PATCH v1] Bluetooth: btintel_pcie: Fix null pointer dereference in remove Chandrashekar Devegowda
2026-06-01 12:47 ` [v1] " bluez.test.bot
@ 2026-06-01 19:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-06-01 19:10 UTC (permalink / raw)
To: Chandrashekar Devegowda
Cc: linux-bluetooth, linux-pci, bhelgaas, ravishankar.srivatsa,
chethan.tumkur.narayan
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 1 Jun 2026 15:56:11 +0530 you wrote:
> Add a NULL check for pci_get_drvdata() in btintel_pcie_remove() to
> prevent a null pointer dereference. This can occur when
> btintel_pcie_remove() is called concurrently from the PLDR
> device_reprobe path on another CPU, after pci_set_drvdata(pdev, NULL)
> has already been executed.
>
> Fixes: 8c0693e29dba ("Bluetooth: btintel_pcie: Support Product level reset")
> Signed-off-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: btintel_pcie: Fix null pointer dereference in remove
https://git.kernel.org/bluetooth/bluetooth-next/c/2bf22888ea6d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-06-01 19:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-01 10:26 [PATCH v1] Bluetooth: btintel_pcie: Fix null pointer dereference in remove Chandrashekar Devegowda
2026-06-01 12:47 ` [v1] " bluez.test.bot
2026-06-01 19:10 ` [PATCH v1] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox