]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
crypto: talitos - sparse fix
authorKim Phillips <kim.phillips@freescale.com>
Thu, 17 Jul 2008 12:20:59 +0000 (20:20 +0800)
committerHerbert 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

index a81265bbb8978e7a62e05747fcafa85b24cb0fb1..681c15f420834a545292b17974e523d387d2f243 100644 (file)
@@ -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;