On Thu, 26 Jan 2023 11:16:07 +0100 Jonas Suhr Christensen wrote: > Free buffer and set pointer to null on dma mapping error. Why? I don't see a leak. You should provide motivation in the commit message.