Searched hist:"4 f289826" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/crypto/caam/ |
H A D | desc_constr.h | 4f289826 Wed Dec 28 05:03:32 CST 2022 Herbert Xu <herbert@gondor.apana.org.au> 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>
|