diff options
author | 2025-04-06 22:10:16 +0200 | |
---|---|---|
committer | 2025-05-21 10:27:20 -0400 | |
commit | ba6535e8b494931471df9666addf0f1e5e6efa27 (patch) | |
tree | 6595524871e6c942d945110c98d6ade2ace862e7 /drivers/bluetooth | |
parent | Bluetooth: btintel_pcie: Do not generate coredump for diagnostic events (diff) | |
download | linux-rng-ba6535e8b494931471df9666addf0f1e5e6efa27.tar.xz linux-rng-ba6535e8b494931471df9666addf0f1e5e6efa27.zip |
Bluetooth: btmrvl_sdio: Fix wakeup source leaks on device unbind
Device can be unbound or probe can fail, so driver must also release
memory for the wakeup source.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btmrvl_sdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 07cd308f7abf..93932a0d8625 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -100,7 +100,9 @@ static int btmrvl_sdio_probe_of(struct device *dev, } /* Configure wakeup (enabled by default) */ - device_init_wakeup(dev, true); + ret = devm_device_init_wakeup(dev); + if (ret) + return dev_err_probe(dev, ret, "Failed to init wakeup\n"); } } |