summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2025-09-23 20:44:18 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-10-17 16:03:57 +0800
commit7cf6e0b69b0d90ab042163e5bbddda0dfcf8b6a7 (patch)
tree34aaada04b9f09778d9b67b3c3dd69878a61c356 /tools/lib/python/kdoc/python_version.py
parent59682835e134d0fd8690d960671145f00eb1ea47 (diff)
crypto: caam - Add check for kcalloc() in test_len()
As kcalloc() may fail, check its return value to avoid a NULL pointer dereference when passing the buffer to rng->read(). On allocation failure, log the error and return since test_len() returns void. Fixes: 2be0d806e25e ("crypto: caam - add a test for the RNG") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions