crypto: tcrypt - Fix multibuffer skcipher speed test mem leak
[linux-2.6-block.git] / crypto / tcrypt.c
index 0f101897e90fb38d567cd8325d30df836b65c270..a0833654ce946d25320b29665ac9e23841ab06dd 100644 (file)
@@ -1090,15 +1090,6 @@ static void test_mb_skcipher_speed(const char *algo, int enc, int secs,
                        goto out_free_tfm;
                }
 
-
-       for (i = 0; i < num_mb; ++i)
-               if (testmgr_alloc_buf(data[i].xbuf)) {
-                       while (i--)
-                               testmgr_free_buf(data[i].xbuf);
-                       goto out_free_tfm;
-               }
-
-
        for (i = 0; i < num_mb; ++i) {
                data[i].req = skcipher_request_alloc(tfm, GFP_KERNEL);
                if (!data[i].req) {