From: Johan Hovold <johan@kernel.org>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, Rajat Jain <rajatja@google.com>
Subject: Re: [PATCH v3 RESEND 3/5] Bluetooth: btusb: fix wakeup source leak on probe failure
Date: Thu, 4 Jun 2026 08:41:43 +0200 [thread overview]
Message-ID: <aiEeJ8PscwEOFWDc@hovoldconsulting.com> (raw)
In-Reply-To: <CABBYNZLr+kLHkjRGOEgyVK7RSfvu0KGjJNrnp5mh-sM66i=5WQ@mail.gmail.com>
On Wed, Jun 03, 2026 at 02:06:08PM -0400, Luiz Augusto von Dentz wrote:
> On Wed, Jun 3, 2026 at 10:37 AM Johan Hovold <johan@kernel.org> wrote:
> > @@ -4181,7 +4181,7 @@ static int btusb_probe(struct usb_interface *intf,
> > if (id->driver_info & BTUSB_MARVELL && data->oob_wake_irq) {
> > err = marvell_config_oob_wake(hdev);
> > if (err)
> > - goto out_free_dev;
> > + goto err_disable_wakeup;
> > }
> > #endif
> > if (id->driver_info & BTUSB_CW6622)
> > @@ -4427,6 +4427,9 @@ static int btusb_probe(struct usb_interface *intf,
> > }
> > err_kill_tx_urbs:
> > usb_kill_anchored_urbs(&data->tx_anchor);
> > +err_disable_wakeup:
> > + if (data->oob_wake_irq)
> > + device_init_wakeup(&data->udev->dev, false);
> > out_free_dev:
> > if (data->reset_gpio)
> > gpiod_put(data->reset_gpio);
> > --
> > 2.53.0
>
> This seem to trigger a compilation problem according to sashiko:
>
> The goto statement targeting err_disable_wakeup is wrapped in an ifdef
> CONFIG_PM block earlier in the function, but this label is defined
> unconditionally here.
> []https://sashiko.dev/#/patchset/20260603143643.2514595-1-johan%40kernel.org
Indeed. Sorry about that. I just sent a v4 addressing this here:
https://lore.kernel.org/lkml/20260604063740.2595260-1-johan@kernel.org/
Johan
next prev parent reply other threads:[~2026-06-04 6:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 14:36 [PATCH v3 RESEND 0/5] Bluetooth: btusb: fix wakeup irq devres lifetime Johan Hovold
2026-06-03 14:36 ` [PATCH v3 RESEND 1/5] Bluetooth: btusb: fix use-after-free on registration failure Johan Hovold
2026-06-03 17:36 ` Bluetooth: btusb: fix wakeup irq devres lifetime bluez.test.bot
2026-06-03 14:36 ` [PATCH v3 RESEND 2/5] Bluetooth: btusb: fix use-after-free on marvell probe failure Johan Hovold
2026-06-03 14:36 ` [PATCH v3 RESEND 3/5] Bluetooth: btusb: fix wakeup source leak on " Johan Hovold
2026-06-03 18:06 ` Luiz Augusto von Dentz
2026-06-04 6:41 ` Johan Hovold [this message]
2026-06-03 14:36 ` [PATCH v3 RESEND 4/5] Bluetooth: btusb: fix wakeup irq devres lifetime Johan Hovold
2026-06-03 14:36 ` [PATCH v3 RESEND 5/5] Bluetooth: btusb: clean up probe error handling Johan Hovold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aiEeJ8PscwEOFWDc@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=rajatja@google.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.