CVE-2026-139668: crypto: qat - fix active_devs leak on crypto alg registration failure
In the Linux kernel, the following vulnerability has been resolved:
crypto: qat - fix activedevs leak on crypto alg registration failure
adfdevstart() registered both alg sets in a single condition. If qatalgsregister() succeeds but qatasymalgsregister() fails, ADFSTATUSCRYPTOALGSREGISTERED is left clear, so adfdevstop() skips qatalgsunregister(): the skciphers and aeads stay registered with activedevs stuck at 1, pinning the module.
Both helpers leak activedevs internally as well - they increment it and return without decrementing when a cryptoregister() call fails, and the asym path also leaves the already-registered akcipher behind.
Split the registration in adfdevstart() so that an asym failure unregisters qatalgs, and unwind activedevs (and the akcipher) on the error paths of both register helpers. While at it, propagate the error code returned by the register helpers instead of a blanket -EFAULT.