diff options
| author | Yang Yingliang <[email protected]> | 2023-02-17 02:43:33 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2023-02-17 10:27:36 +0000 |
| commit | 71d04535e853305a76853b28a01512a62006351d (patch) | |
| tree | a4cc511b2aa56930e31825c9d3faa09b90200ab7 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | dt-bindings: mmc: meson-gx: fix interrupt binding (diff) | |
| download | kernel-71d04535e853305a76853b28a01512a62006351d.tar.gz kernel-71d04535e853305a76853b28a01512a62006351d.zip | |
mmc: core: fix return value check in devm_mmc_alloc_host()
mmc_alloc_host() returns NULL pointer not PTR_ERR(), if it
fails, so replace the IS_ERR() check with NULL pointer check.
In commit 418f7c2de133 ("mmc: meson-gx: use devm_mmc_alloc_host"),
it checks NULL pointer not PTR_ERR, if devm_mmc_alloc_host() fails,
so make it to return NULL pointer to keep same with mmc_alloc_host(),
the drivers don't need to change the error handle when switch to
use devm_mmc_alloc_host().
Fixes: 80df83c2c57e ("mmc: core: add devm_mmc_alloc_host")
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Heiner Kallweit <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
