diff options
| author | Nicholas Mc Guire <[email protected]> | 2018-11-22 08:46:43 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2018-11-25 10:38:36 +0000 |
| commit | aad172b017617994343e36d8659c69e14cd694fd (patch) | |
| tree | ef15541184983a031b33e815217aa9111e80e695 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | bac257b0d2a1e06426f7db56abeda7c2ffcf0752 (diff) | |
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 <[email protected]>
Fixes: 3adbf3427330 ("iio: adc: add a driver for the SAR ADC found in Amlogic Meson SoCs")
Acked-by: Martin Blumenstingl <[email protected]>
Tested-by: Martin Blumenstingl <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions