[PATCH 6.1 061/112] iio: triggered-buffer: prevent possible freeing of wrong buffer