On Tue, Oct 31, 2023 at 11:58:32AM +0300, Dan Carpenter wrote: > 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: dbc8876dd873 ("crypto: qat - add rp2svc sysfs attribute") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > drivers/crypto/intel/qat/qat_common/adf_sysfs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt