[PATCH 5.8 259/633] dmaengine: dmatest: Check list for emptiness before access its last entry