ocf: update to version 20120127
[openwrt/svn-archive/archive.git] / target / linux / generic / files / crypto / ocf / cryptocteon / cryptocteon.c
index b0c10a295a678727acfba37ab6b16477f70c60cd..0168ad321950a39087a4ca6e5e6c12fcd2156ada 100644 (file)
@@ -497,7 +497,8 @@ octo_process(device_t dev, struct cryptop *crp, int hint)
                                offset_in_page(crp->crp_buf));
                sg_num = 1;
        }
-
+       if (sg_num > 0)
+               sg_mark_end(&sg[sg_num-1]);
 
        /*
         * setup a new explicit key