Re: [PATCH] crypto: ux500/hash: Add empty export and import

From: Linus Walleij
Date: Thu Jan 18 2018 - 05:06:55 EST


On Tue, Jan 16, 2018 at 5:32 PM, Kamil Konieczny
<k.konieczny@xxxxxxxxxxxxxxxxxxx> wrote:

> Crypto framework will require async hash export/import, so add empty
> functions to prevent OOPS.
>
> Signed-off-by: Kamil Konieczny <k.konieczny@xxxxxxxxxxxxxxxxxxx>

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

But why isn't the framework code just checking the vtable for NULL?

if (foo->fp)
foo->fp(bar);

Yours,
Linus Walleij