Source code is if (dma_mapping_error(jrdev, state->buf_dma)) { dev_err(jrdev, "unable to map src\n"); return -ENOMEM; } Maybe better code is if (dma_mapping_error(jrdev, state->buf_dma)) { dev_err(jrdev, "unable to map src\n"); kfree(edesc); return -ENOMEM; }
(pinged freescale)
Thanks for reporting. There are several similar issues there.