Nicholas Mc Guire aad172b017 iio: adc: meson-saradc: check for devm_kasprintf 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_sar_adc_clk_init() 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: 3adbf3427330 ("iio: adc: add a driver for the SAR ADC found in Amlogic Meson SoCs")
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-11-25 10:38:36 +00:00
..
2018-11-02 11:22:45 -07:00
2018-11-01 18:34:46 -07:00
2018-11-02 11:25:48 -07:00
2018-10-29 15:16:01 -07:00
2018-10-27 09:24:24 -07:00
2018-10-25 06:50:48 -07:00
2018-10-16 11:13:50 +02:00
2018-10-25 06:50:48 -07:00
2018-11-01 08:42:21 -07:00
2018-10-11 12:12:55 +02:00
2018-10-31 08:54:16 -07:00
2018-11-02 11:25:48 -07:00
2018-10-31 10:53:29 -07:00
2018-10-31 16:47:55 -07:00
2018-10-25 06:31:56 -07:00
2018-11-02 11:25:48 -07:00
2018-11-01 14:45:38 -07:00
2018-10-26 14:36:21 -07:00
2018-10-22 17:30:06 +01:00
2018-10-26 08:14:13 -07:00
2018-11-01 08:42:21 -07:00
2018-10-26 12:09:58 -07:00
2018-10-29 15:16:01 -07:00
2018-10-31 08:54:16 -07:00
2018-11-03 10:47:33 -07:00
2018-10-31 08:54:16 -07:00
2018-10-25 06:19:15 -07:00
2018-11-03 10:34:03 -07:00
2018-10-11 09:16:44 -07:00
2018-10-31 08:54:16 -07:00
2018-10-31 11:01:38 -07:00
2018-11-01 14:42:49 -07:00
2018-10-31 11:41:37 -07:00