Commit 5c0992a
committed
crypto: qat/qat_4xxx - fix off by one in uof_get_name()
JIRA: https://issues.redhat.com/browse/RHEL-52749
Upstream Status: merged into herbert/crypto-2.6.git
commit 475b509
Author: Dan Carpenter <dan.carpenter@linaro.org>
Date: Sat Sep 28 13:05:08 2024 +0300
crypto: qat/qat_4xxx - fix off by one in uof_get_name()
The fw_objs[] array has "num_objs" elements so the > needs to be >= to
prevent an out of bounds read.
Fixes: 10484c6 ("crypto: qat - refactor fw config logic for 4xxx")
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>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>1 parent 02c4118 commit 5c0992a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments