crypto: sahara - checking the wrong variable
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 20 Aug 2013 08:51:41 +0000 (11:51 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:28:06 +0000 (21:28 +1000)
commit393e661d6167c1b7444704191ea1d01aa3447894
tree6e88ed7d3c478a7c8eaf72fe945cb75811219dac
parent1bbf643705c3f85f3fa2325807afae260f755f9a
crypto: sahara - checking the wrong variable

There is a typo here.  "dev->hw_link[]" is an array, not a pointer, so
the check is nonsense.  We should be checking recently allocated
"dev->hw_link[0]" instead.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c