diff options
Diffstat (limited to 'drivers/crypto/hifn_795x.c')
-rw-r--r-- | drivers/crypto/hifn_795x.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index cce6e6f1baa5..4e89cd8f664f 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c | |||
@@ -1602,7 +1602,10 @@ static int hifn_setup_session(struct ablkcipher_request *req) | |||
1602 | idx = 0; | 1602 | idx = 0; |
1603 | 1603 | ||
1604 | sg_num = ablkcipher_walk(req, &ctx->walk); | 1604 | sg_num = ablkcipher_walk(req, &ctx->walk); |
1605 | 1605 | if (sg_num < 0) { | |
1606 | err = sg_num; | ||
1607 | goto err_out_exit; | ||
1608 | } | ||
1606 | atomic_set(&ctx->sg_num, sg_num); | 1609 | atomic_set(&ctx->sg_num, sg_num); |
1607 | 1610 | ||
1608 | spin_lock_irqsave(&dev->lock, flags); | 1611 | spin_lock_irqsave(&dev->lock, flags); |