Skip to content

Bluetooth: btusb: fix wakeup irq devres lifetime

Johan Hovold linux-bluetooth lkml stable 5 versions – Applied

Status from this message: This series was applied to bluetooth/bluetooth-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 1 replyApplied 5/5
  2. v3 posting 2/25 patches 3 repliesSuperseded
  3. v3 posting 1/25 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches2 repliesSuperseded
v11 patch3 repliesSuperseded

Changes in v4 from the cover letter

- fix unused label warning with !CONFIG_PM

Patches in v4 All 5 applied

#Subject and filesSizeRepliesApplied
1/5Bluetooth: btusb: fix use-after-free on registration failuredrivers/bluetooth/btusb.c+10 -11 replyApplied
2/5Bluetooth: btusb: fix use-after-free on marvell probe failuredrivers/bluetooth/btusb.c+5 -30 repliesApplied
3/5Bluetooth: btusb: fix wakeup source leak on probe failuredrivers/bluetooth/btusb.c+15 -30 repliesApplied
4/5Bluetooth: btusb: fix wakeup irq devres lifetimedrivers/bluetooth/btusb.c+15 -50 repliesApplied
5/5Bluetooth: btusb: clean up probe error handlingdrivers/bluetooth/btusb.c+10 -90 repliesApplied

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchPaul Menzel
1/5R-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] Bluetooth: btusb: fix wakeup irq devres lifetime

This series fixes a couple of use-after-free issues and a wakeup source leak on probe failure and a (currently benign) OOB wakeup interrupt devres lifetime issue.

Included is also a related cleanup.

Johan

Changes in v4:
- fix unused label warning with !CONFIG_PM

Changes in v3:
- fix use-after-free on registration failure (new patch)
- fix use-after-free on marvell probe failure (new patch)

Changes in v2:
- fix wakeup source leak (new patch)
- fix disconnect-while-suspended issue by making interrupt non-managed
- amend devres lifetime fix commit message with a reference to changed devres behaviour
- clean up error handling (new patch)

Johan Hovold (5):
Bluetooth: btusb: fix use-after-free on registration failure
Bluetooth: btusb: fix use-after-free on marvell probe failure
Bluetooth: btusb: fix wakeup source leak on probe failure
Bluetooth: btusb: fix wakeup irq devres lifetime
Bluetooth: btusb: clean up probe error handling

 drivers/bluetooth/btusb.c | 74 ++++++++++++++++++++++++++++-----------
 1 file changed, 54 insertions(+), 20 deletions(-)
Signature · 1 line
2.53.0