aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorHoria Geantă <[email protected]>2018-02-05 09:15:52 +0000
committerHerbert Xu <[email protected]>2018-02-08 11:38:13 +0000
commit225ece3e7dad4cfc44cca38ce7a3a80f255ea8f1 (patch)
tree90c6a304a1698b5e9ee8e644d3c62c7df22a4355 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentcrypto: sha3-generic - Use __optimize to support old compilers (diff)
downloadkernel-225ece3e7dad4cfc44cca38ce7a3a80f255ea8f1.tar.gz
kernel-225ece3e7dad4cfc44cca38ce7a3a80f255ea8f1.zip
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions