]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sa2ul - Fix inconsistent IS_ERR and PTR_ERR
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 24 Jul 2020 16:50:27 +0000 (11:50 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Jul 2020 08:25:29 +0000 (18:25 +1000)
commit2f901f0bf875e5fa86af86b35dafafb064b63759
tree4a978e404de2244bf72a7cc4ef845749bde63907
parent56a6cea1d5d6771332f54cc7c8025f502bd62f5d
crypto: sa2ul - Fix inconsistent IS_ERR and PTR_ERR

Fix inconsistent IS_ERR and PTR_ERR in sa_dma_init(). The proper pointer
to be passed as argument to PTR_ERR() is dd->dma_tx.

This bug was detected with the help of Coccinelle.

Fixes: f772a2643112 ("crypto: sa2ul - Add crypto driver")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c