Re: [PATCH] mmc: meson-mx-sdio: check devm_kasprintf for failure

2018-12-05 Thread Ulf Hansson
On Thu, 22 Nov 2018 at 10:40, Nicholas Mc Guire wrote: > > 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 ca

Re: [PATCH] mmc: meson-mx-sdio: check devm_kasprintf for failure

2018-11-22 Thread Martin Blumenstingl
On Thu, Nov 22, 2018 at 10:41 AM Nicholas Mc Guire wrote: > > 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