Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto/omap-sham: remove an open coded access to ->page_link

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
[hch: split from a larger patch by Dan]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jens Axboe <axboe@fb.com>

authored by

Christoph Hellwig and committed by
Jens Axboe
89e2a840 da81ed16

+1 -1
+1 -1
drivers/crypto/omap-sham.c
··· 588 588 * the dmaengine may try to DMA the incorrect amount of data. 589 589 */ 590 590 sg_init_table(&ctx->sgl, 1); 591 - ctx->sgl.page_link = ctx->sg->page_link; 591 + sg_assign_page(&ctx->sgl, sg_page(ctx->sg)); 592 592 ctx->sgl.offset = ctx->sg->offset; 593 593 sg_dma_len(&ctx->sgl) = len32; 594 594 sg_dma_address(&ctx->sgl) = sg_dma_address(ctx->sg);