crypto: sun4i_ss_prng - convert lock to _bh in sun4i_ss_prng_generate
authorArtem Savkov <artem.savkov@gmail.com>
Tue, 6 Feb 2018 21:20:22 +0000 (22:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:42:19 +0000 (15:42 +0100)
commit14d87b710338145e46940d0f751c5b7dd5b4c38f
treef1f94d5bcea388c9e928197a98f3497fe841c02d
parentb3d33c5f296b36a05e24828f96c8ea5e02a15b06
crypto: sun4i_ss_prng - convert lock to _bh in sun4i_ss_prng_generate

commit 2e7d1d61ea6c0f1c4da5eb82cafac750d55637a7 upstream.

Lockdep detects a possible deadlock in sun4i_ss_prng_generate() and
throws an "inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage" warning.
Disabling softirqs to fix this.

Fixes: b8ae5c7387ad ("crypto: sun4i-ss - support the Security System PRNG")
Signed-off-by: Artem Savkov <artem.savkov@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/sunxi-ss/sun4i-ss-prng.c