diff options
| author | Ard Biesheuvel <[email protected]> | 2021-03-02 21:33:03 +0100 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2021-03-13 00:04:01 +1100 |
| commit | 83681f2bebb34dbb3f03fecd8f570308ab8b7c2c (patch) | |
| tree | e77d6a6d5d4eb8a24caf9af6241ead46922c34b6 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 98b5ef3e97b16eaeeedb936f8bda3594ff84a70e (diff) | |
crypto: api - check for ERR pointers in crypto_destroy_tfm()
Given that crypto_alloc_tfm() may return ERR pointers, and to avoid
crashes on obscure error paths where such pointers are presented to
crypto_destroy_tfm() (such as [0]), add an ERR_PTR check there
before dereferencing the second argument as a struct crypto_tfm
pointer.
[0] https://lore.kernel.org/linux-crypto/[email protected]/
Reported-by: [email protected]
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions