diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-08-22 23:07:47 +0800 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-09-17 17:43:42 -0500 |
| commit | 768e5d0936d00d663ce2b8c192cc6ab0b61ad461 (patch) | |
| tree | 2f63aa64c7b52521efeccce630ac4c5be88d3ddf /rust/kernel/alloc/kvec/errors.rs | |
| parent | 52cd9bb3772e82d792cb0def3c2a5a9b6bd24ffb (diff) | |
PCI: dra7xx: Fix clock enable leak on probe failure
dra7xx_pcie_probe() enables the optional clock but never disables it
when probing fails afterwards.
Switch to devm_clk_get_optional_enabled(), which disables the clock
automatically on failure.
Fixes: 5af9405397bf ("PCI: dra7xx: Get an optional clock")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260822-dra7xx-v1-1-23e204d5548b@gmail.com
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
