crypto: caam - check return code of dma_set_mask_and_coherent()
authorHoria Geantă <horia.geanta@nxp.com>
Fri, 10 Feb 2017 12:07:15 +0000 (14:07 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Feb 2017 05:23:37 +0000 (13:23 +0800)
commitb3b5fce7364b674b66c58adea1dd2a2f85b61dd7
treeb8ccc53f14e2cbe445de3773d9607ed71eb2a640
parent78fd0fff7fbb55b352bd7058bf51caa46dd3a0f1
crypto: caam - check return code of dma_set_mask_and_coherent()

Setting the dma mask could fail, thus make sure it succeeds
before going further.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/jr.c