]> Pileus Git - ~andy/linux/blobdiff - include/crypto/scatterwalk.h
crypto: scatterwalk - Set the chain pointer indication bit
[~andy/linux] / include / crypto / scatterwalk.h
index 13621cc8cf4c454f546a6fbb33fb5e85e8b1b1aa..64ebede184f10d588ab251a11efe8df9f016d358 100644 (file)
@@ -36,6 +36,7 @@ static inline void scatterwalk_sg_chain(struct scatterlist *sg1, int num,
 {
        sg_set_page(&sg1[num - 1], (void *)sg2, 0, 0);
        sg1[num - 1].page_link &= ~0x02;
+       sg1[num - 1].page_link |= 0x01;
 }
 
 static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg)