Merge tag 'asoc-fix-v5.17-rc7' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / crypto / tcrypt.c
index 82b0400..0014965 100644 (file)
@@ -1333,7 +1333,7 @@ static void test_mb_skcipher_speed(const char *algo, int enc, int secs,
 
                        if (bs > XBUFSIZE * PAGE_SIZE) {
                                pr_err("template (%u) too big for buffer (%lu)\n",
-                                      *b_size, XBUFSIZE * PAGE_SIZE);
+                                      bs, XBUFSIZE * PAGE_SIZE);
                                goto out;
                        }
 
@@ -1386,8 +1386,7 @@ static void test_mb_skcipher_speed(const char *algo, int enc, int secs,
                                memset(cur->xbuf[p], 0xff, k);
 
                                skcipher_request_set_crypt(cur->req, cur->sg,
-                                                          cur->sg, *b_size,
-                                                          iv);
+                                                          cur->sg, bs, iv);
                        }
 
                        if (secs) {