[PATCH 6.1 072/149] iio: core: Prevent invalid memory access when there is no parent