diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2022-12-28 19:03:32 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-01-06 17:15:46 +0800 |
| commit | 4f289826fee03571c2784272dd530aae1fd77566 (patch) | |
| tree | 5d5c668107debbae1d884bc661e19356eb70b943 /tools/perf/scripts/python | |
| parent | lib/mpi: Fix buffer overrun when SG is too long (diff) | |
| download | linux-4f289826fee03571c2784272dd530aae1fd77566.tar.gz linux-4f289826fee03571c2784272dd530aae1fd77566.zip | |
crypto: caam - Avoid GCC memset bug warning
Certain versions of gcc don't like the memcpy with a NULL dst
(which only happens with a zero length). This only happens
when debugging is enabled so add an if clause to work around
these warnings.
A similar warning used to be generated by sparse but that was
fixed years ago.
Link: https://lore.kernel.org/lkml/202210290446.qBayTfzl-lkp@intel.com
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Kees Cook <keescook@chromium.org>
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
