[Acc] [PATCH] uadk: fix SGL/DMA resource leak and missing NULL checks