diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-11-22 10:35:19 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-12-17 08:26:24 +0100 |
commit | b0d06f1cb0e2079a3c64fb6e27c19d9a55c723a1 (patch) | |
tree | bc8796c973820d2b6b48457fdb91aaef774ff5b8 /arch/arm/mach-ep93xx | |
parent | 48e304cc1970b65f43c0d2f82aaf48285f0eccd2 (diff) | |
download | linux-b0d06f1cb0e2079a3c64fb6e27c19d9a55c723a1.tar.gz linux-b0d06f1cb0e2079a3c64fb6e27c19d9a55c723a1.tar.bz2 linux-b0d06f1cb0e2079a3c64fb6e27c19d9a55c723a1.zip |
mmc: meson-mx-sdio: check devm_kasprintf for failure
devm_kasprintf() may return NULL on failure of internal allocation thus
the assignments to init.name are not safe if not checked. On error
meson_mx_mmc_register_clks() returns negative values so -ENOMEM in the
(unlikely) failure case of devm_kasprintf() should be fine here.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: ed80a13bb4c4 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs")
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'arch/arm/mach-ep93xx')
0 files changed, 0 insertions, 0 deletions