Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95709
b: refs/heads/master
c: 8ec970d
h: refs/heads/master
i:
  95707: 9e492ac
v: v3
  • Loading branch information
Herbert Xu committed May 1, 2008
1 parent 7e5a36f commit 1433df4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 161613293fd4b7d5ceb1faab788f47e688e07a67
refs/heads/master: 8ec970d8561abb5645d4602433b772e268c96d05
4 changes: 4 additions & 0 deletions trunk/include/crypto/scatterwalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ static inline void scatterwalk_sg_chain(struct scatterlist *sg1, int num,
struct scatterlist *sg2)
{
sg_set_page(&sg1[num - 1], (void *)sg2, 0, 0);
sg1[num - 1].page_link &= ~0x02;
}

static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg)
{
if (sg_is_last(sg))
return NULL;

return (++sg)->length ? sg : (void *)sg_page(sg);
}

Expand Down

0 comments on commit 1433df4

Please sign in to comment.