]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/dma/ste_dma40.c
pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails
[mirror_ubuntu-zesty-kernel.git] / drivers / dma / ste_dma40.c
index 2ed1ac3513f3d4de118d7937f40fadc202748a93..000d309602b2d76fd825d895be5ab5b91837d19f 100644 (file)
@@ -2362,7 +2362,7 @@ dma40_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t dma_addr,
        }
 
        sg[periods].offset = 0;
-       sg[periods].length = 0;
+       sg_dma_len(&sg[periods]) = 0;
        sg[periods].page_link =
                ((unsigned long)sg | 0x01) & ~0x02;