]> err.no Git - linux-2.6/blobdiff - drivers/crypto/talitos.c
rtl8187: Improve wireless statistics for RTL8187B
[linux-2.6] / 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;