Re: [PATCH 1/3] crypto: sa2ul - Hide pointer and fix -Wpointer-to-int-cast in dev_dbg()

2021-02-28 Thread Krzysztof Kozlowski
On Mon, 1 Mar 2021 at 07:36, Herbert Xu wrote: > > On Sat, Feb 27, 2021 at 05:37:49PM +0100, Krzysztof Kozlowski wrote: > > > > I think this patch was lost, although you replied that the entire set > > is applied. > > > > Can you pick it up? > > I think it was not applicable because the following

Re: [PATCH 1/3] crypto: sa2ul - Hide pointer and fix -Wpointer-to-int-cast in dev_dbg()

2021-02-28 Thread Herbert Xu
On Sat, Feb 27, 2021 at 05:37:49PM +0100, Krzysztof Kozlowski wrote: > > I think this patch was lost, although you replied that the entire set > is applied. > > Can you pick it up? I think it was not applicable because the following had already been applied: commit ea066b7a3ddf1e4e5ae749495f0adf

[PATCH] crypto: cavium - remove unused including

2021-02-28 Thread Tian Tao
Remove including that don't need it. Signed-off-by: Tian Tao --- drivers/crypto/cavium/cpt/cptpf_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/cavium/cpt/cptpf_main.c b/drivers/crypto/cavium/cpt/cptpf_main.c index 711b1ac..06ee42e 100644 --- a/drivers/crypto/cavium/c

[PATCH] crypto: qat - fix use of 'dma_map_single'

2021-02-28 Thread Hui Tang
DMA_TO_DEVICE synchronisation must be done after the last modification of the memory region by the software and before it is handed off to the device. Signed-off-by: Hui Tang --- drivers/crypto/qat/qat_common/qat_algs.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions

[PATCH] hwrng: pic32 - Use device-managed registration API

2021-02-28 Thread Tian Tao
Use devm_hwrng_register to get rid of manual unregistration. Signed-off-by: Tian Tao --- drivers/char/hw_random/pic32-rng.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/hw_random/pic32-rng.c b/drivers/char/hw_random/pic32-rng.c index e8210c1..99c8bd0 100644

[PATCH] hwrng: cctrng - Use device-managed registration API

2021-02-28 Thread Tian Tao
Use devm_hwrng_register to get rid of manual unregistration. Signed-off-by: Tian Tao --- drivers/char/hw_random/cctrng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrng.c index 7a293f2..0efb37a 100644 --- a/dr

[PATCH 12/11] pragma once: scripted treewide conversion

2021-02-28 Thread Alexey Dobriyan
[ Bcc a lot of lists so that people understand what's this is all ] [ about without creating uber-cc-thread. ] [ Apologies if I missed your subsystem] [ Please see [PATCH 11/11: pragma once: conversion script (in Pytho

[PATCH] crypto: api - check for ERR pointers in crypto_destroy_tfm()

2021-02-28 Thread Ard Biesheuvel
Given that crypto_alloc_tfm() may return ERR pointers, and to avoid crashes on obscure error paths where such pointers are presented to crypto_destroy_tfm() (such as [0]), add an ERR_PTR check there before dereferencing the second argument as a struct crypto_tfm pointer. [0] https://lore.kernel.o