aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2023-01-31 09:38:35 +0800
committerUlf Hansson <[email protected]>2023-02-14 00:09:17 +0100
commitcf4c9d2ac1e42c7d18b921bec39486896645b714 (patch)
tree8c361b2f433b39604f46ad5c145e9b2730e67e8f /tools/perf/scripts/python/bin/export-to-postgresql-report
parent605d9fb9556f8f5fb4566f4df1480f280f308ded (diff)
mmc: mmc_spi: fix error handling in mmc_spi_probe()
If mmc_add_host() fails, it doesn't need to call mmc_remove_host(), or it will cause null-ptr-deref, because of deleting a not added device in mmc_remove_host(). To fix this, goto label 'fail_glue_init', if mmc_add_host() fails, and change the label 'fail_add_host' to 'fail_gpiod_request'. Fixes: 15a0580ced08 ("mmc_spi host driver") Signed-off-by: Yang Yingliang <[email protected]> Cc:[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions