aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorHoria Geantă <[email protected]>2018-02-05 11:15:52 +0200
committerHerbert Xu <[email protected]>2018-02-08 22:38:13 +1100
commit225ece3e7dad4cfc44cca38ce7a3a80f255ea8f1 (patch)
tree90c6a304a1698b5e9ee8e644d3c62c7df22a4355 /net/unix/sysctl_net_unix.c
parentba916b6a0339ed6cc6441ad83c097ab795dbdbc5 (diff)
crypto: caam - fix endless loop when DECO acquire fails
In case DECO0 cannot be acquired - i.e. run_descriptor_deco0() fails with -ENODEV, caam_probe() enters an endless loop: run_descriptor_deco0 ret -ENODEV -> instantiate_rng -ENODEV, overwritten by -EAGAIN ret -EAGAIN -> caam_probe -EAGAIN results in endless loop It turns out the error path in instantiate_rng() is incorrect, the checks are done in the wrong order. Cc: <[email protected]> # 3.13+ Fixes: 1005bccd7a4a6 ("crypto: caam - enable instantiation of all RNG4 state handles") Reported-by: Bryan O'Donoghue <[email protected]> Suggested-by: Auer Lukas <[email protected]> Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions