summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-10-31 11:58:32 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-11-17 19:16:29 +0800
commite53c741303a59ee1682e11f61b7772863e02526d (patch)
tree4e8e30e2313667ec5c5cee0d2b9e5b48e2f9e9ac /tools/perf/scripts/python/export-to-sqlite.py
parentbc197f5760025b61a33565301f4390886e0483db (diff)
downloadlinux-e53c741303a59ee1682e11f61b7772863e02526d.tar.gz
linux-e53c741303a59ee1682e11f61b7772863e02526d.zip
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: dbc8876dd873 ("crypto: qat - add rp2svc sysfs attribute") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions