Re: [PATCH] crypto: caam - fix printing on xts fallback allocation error path

2020-11-05 Thread Herbert Xu
On Sun, Nov 01, 2020 at 10:05:53PM +0200, Horia Geantă wrote: > At the time xts fallback tfm allocation fails the device struct > hasn't been enabled yet in the caam xts tfm's private context. > > Fix this by using the device struct from xts algorithm's private context > or, when not available,

Re: [PATCH] crypto: caam - fix printing on xts fallback allocation error path

2020-11-02 Thread Iuliana Prodan
On 11/1/2020 10:05 PM, Horia Geantă wrote: At the time xts fallback tfm allocation fails the device struct hasn't been enabled yet in the caam xts tfm's private context. Fix this by using the device struct from xts algorithm's private context or, when not available, by replacing dev_err with

[PATCH] crypto: caam - fix printing on xts fallback allocation error path

2020-11-01 Thread Horia Geantă
At the time xts fallback tfm allocation fails the device struct hasn't been enabled yet in the caam xts tfm's private context. Fix this by using the device struct from xts algorithm's private context or, when not available, by replacing dev_err with pr_err. Fixes: 9d9b14dbe077 ("crypto: caam/jr