[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdYLxALiKfaPe5rQwDTWj3y5tV3-491s=wJVa15qs0Z27A@mail.gmail.com>
Date: Thu, 18 Jan 2018 11:06:46 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Kamil Konieczny <k.konieczny@...tner.samsung.com>
Cc: Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
linux-crypto@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Joakim Bech <joakim.bech@...aro.org>
Subject: Re: [PATCH] crypto: ux500/hash: Add empty export and import
On Tue, Jan 16, 2018 at 5:32 PM, Kamil Konieczny
<k.konieczny@...tner.samsung.com> wrote:
> Crypto framework will require async hash export/import, so add empty
> functions to prevent OOPS.
>
> Signed-off-by: Kamil Konieczny <k.konieczny@...tner.samsung.com>
Acked-by: Linus Walleij <linus.walleij@...aro.org>
But why isn't the framework code just checking the vtable for NULL?
if (foo->fp)
foo->fp(bar);
Yours,
Linus Walleij
Powered by blists - more mailing lists