projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa86a26
)
crypto: talitos - sparse fix
author
Kim Phillips
<kim.phillips@freescale.com>
Thu, 17 Jul 2008 12:20:59 +0000
(20:20 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 17 Jul 2008 12:20:59 +0000
(20:20 +0800)
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/crypto/talitos.c
b/drivers/crypto/talitos.c
index a81265bbb8978e7a62e05747fcafa85b24cb0fb1..681c15f420834a545292b17974e523d387d2f243 100644
(file)
--- a/
drivers/crypto/talitos.c
+++ b/
drivers/crypto/talitos.c
@@
-848,7
+848,7
@@
static int sg_to_link_tbl(struct scatterlist *sg, int sg_count,
/* adjust (decrease) last one (or two) entry's len to cryptlen */
link_tbl_ptr--;
- while (
link_tbl_ptr->len
<= (-cryptlen)) {
+ while (
be16_to_cpu(link_tbl_ptr->len)
<= (-cryptlen)) {
/* Empty this entry, and move to previous one */
cryptlen += be16_to_cpu(link_tbl_ptr->len);
link_tbl_ptr->len = 0;