diff options
author | 2021-11-06 18:44:52 +0100 | |
---|---|---|
committer | 2021-11-29 13:24:24 +0000 | |
commit | 4e0e90539bb0e6c0ca3768c642df9eed2118a8bb (patch) | |
tree | e0092aef7755aa1fa1caf0fd3786be831337101f /scripts/gdb/linux/utils.py | |
parent | Linux 5.16-rc1 (diff) | |
download | wireguard-linux-4e0e90539bb0e6c0ca3768c642df9eed2118a8bb.tar.xz wireguard-linux-4e0e90539bb0e6c0ca3768c642df9eed2118a8bb.zip |
PCI: qcom: Fix an error handling path in 'qcom_pcie_probe()'
If 'of_device_get_match_data()' fails, previous 'pm_runtime_get_sync()/
pm_runtime_enable()' should be undone.
To fix it, the easiest is to move this block of code before the memory
allocations and the pm_runtime_xxx calls.
Link: https://lore.kernel.org/r/4d03c636193f64907c8dacb17fa71ed05fd5f60c.1636220582.git.christophe.jaillet@wanadoo.fr
Fixes: b89ff410253d ("PCI: qcom: Replace ops with struct pcie_cfg in pcie match data")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions