Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: qat - prevent underflow in rp2srv_store()
The "ring" variable has an upper bounds check but nothing checks for negatives. This code uses kstrtouint() already and it was obviously intended to be declared as unsigned int. Make it so. Fixes: dbc8876 ("crypto: qat - add rp2svc sysfs attribute") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information