crypto: sahara - pass on error condition
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 7 Feb 2015 11:27:45 +0000 (06:27 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 28 Feb 2015 10:31:36 +0000 (23:31 +1300)
commit6cf02fcab1f6158c224fb00619f21556d8e5c4ea
tree70675964df0df5dddc5f2bc6d364217809d7252d
parent58ed798b8291f1d63c00d6dfe077587494a6790a
crypto: sahara - pass on error condition

A failure of sahara_hw_descriptor_create() with -EINVAL due to scatter list
out of bounds/invalid would not be reported back. This patch just passes on
the -EINVAL so it is visible in sahara_queue_manage().

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c