]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: octeontx2 - fix potential null pointer access
authorShijith Thotton <sthotton@marvell.com>
Wed, 1 Jun 2022 08:08:59 +0000 (13:38 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Jun 2022 08:43:49 +0000 (16:43 +0800)
commitbe2b2abae5624525965a41b1a94b091853317231
treefbe9bdbde183d571c7657b7d8e1a140999829be2
parent33f982a314ccb2f1f53c712460b07ecbf56d9308
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>
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c