]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - crypto/tcrypt.c
net/mlx5: Fix some error handling paths in 'mlx5e_tc_add_fdb_flow()'
[mirror_ubuntu-jammy-kernel.git] / crypto / tcrypt.c
index 82b0400985a51bb309e2f5bee9d025d4bbf46e65..00149657a4bc169c90951a95297c3e7394ca397a 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) {