diff options
author | Shijith Thotton <sthotton@marvell.com> | 2022-06-01 13:38:59 +0530 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-06-10 16:43:49 +0800 |
commit | b03c0dc0788abccc7a25ef7dff5818f4123bb992 (patch) | |
tree | fbe9bdbde183d571c7657b7d8e1a140999829be2 /lib/mpi/mpi-add.c | |
parent | 2d16803c562ecc644803d42ba98a8e0aef9c014e (diff) | |
download | linux-b03c0dc0788abccc7a25ef7dff5818f4123bb992.tar.gz linux-b03c0dc0788abccc7a25ef7dff5818f4123bb992.tar.bz2 linux-b03c0dc0788abccc7a25ef7dff5818f4123bb992.zip |
crypto: octeontx2 - fix potential null pointer access
Added missing checks to avoid null pointer dereference.
The patch fixes below issue reported by klocwork tool:
. Pointer 'strsep( &val, ":" )' returned from call to function 'strsep'
at line 1608 may be NULL and will be dereferenced at line 1608. Also
there are 2 similar errors on lines 1620, 1632 in otx2_cptpf_ucode.c.
Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions