crypto: omap-sham - potential Oops on error in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 May 2016 10:39:05 +0000 (13:39 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 19 May 2016 10:03:00 +0000 (18:03 +0800)
commitd462e32259810aaaf13440b033b99e1aad33eccd
treed716d7535e55f9ffa3a680dcc48901d3b31d46f3
parent4a6b27b79da5ccc6b85dc05bbe6a091e58be896a
crypto: omap-sham - potential Oops on error in probe

This if statement is reversed so we end up either leaking or Oopsing on
error.

Fixes: dbe246209bc1 ('crypto: omap-sham - Use dma_request_chan() for requesting DMA channel')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c