crypto: cavium/nitrox - dma_mapping_error() returns bool
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Jun 2017 10:51:25 +0000 (13:51 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Jun 2017 08:54:08 +0000 (16:54 +0800)
commitf2339eb9b9b01c6728ed36c274ca381bc6c452c0
tree43d5d99f032490bb2368839e7214ebc914ae24bf
parent8bd1d400f6a4d1fdcf79c64012602518781573e5
crypto: cavium/nitrox - dma_mapping_error() returns bool

We want to return negative error codes here, but we're accidentally
propogating the "true" return from dma_mapping_error().

Fixes: 14fa93cdcd9b ("crypto: cavium - Add support for CNN55XX adapters.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c