Skip to content

Commit 0f46a79

Browse files
Haren Mynenimpe
authored andcommitted
crypto/nx: Do not initialize workmem allocation
We are using percpu send window on P9 NX (powerNV) instead of opening / closing per each crypto session. Means txwin is removed from workmem. So we do not need to initialize workmem for each request. Signed-off-by: Haren Myneni <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 976dd64 commit 0f46a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/nx/nx-842.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver)
116116

117117
spin_lock_init(&ctx->lock);
118118
ctx->driver = driver;
119-
ctx->wmem = kzalloc(driver->workmem_size, GFP_KERNEL);
119+
ctx->wmem = kmalloc(driver->workmem_size, GFP_KERNEL);
120120
ctx->sbounce = (u8 *)__get_free_pages(GFP_KERNEL, BOUNCE_BUFFER_ORDER);
121121
ctx->dbounce = (u8 *)__get_free_pages(GFP_KERNEL, BOUNCE_BUFFER_ORDER);
122122
if (!ctx->wmem || !ctx->sbounce || !ctx->dbounce) {

0 commit comments

Comments
 (0)