[PATCH 6.18 300/614] iio: core: Clean up device correctly on iio_device_alloc() failure