Commit e27303b25611e9a9ba78c0b5614abeb173d6cc74

Authored by Thomas Meyer
Committed by Herbert Xu
1 parent 66be895158

crypto: n2 - Fix a get/put_cpu() imbalance

Fix a get/put_cpu() imbalance in the error case when qp == NULL

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/crypto/n2_core.c
... ... @@ -1006,9 +1006,9 @@
1006 1006  
1007 1007 spin_unlock_irqrestore(&qp->lock, flags);
1008 1008  
  1009 +out:
1009 1010 put_cpu();
1010 1011  
1011   -out:
1012 1012 n2_chunk_complete(req, NULL);
1013 1013 return err;
1014 1014 }
1015 1015  
... ... @@ -1096,9 +1096,9 @@
1096 1096  
1097 1097 spin_unlock_irqrestore(&qp->lock, flags);
1098 1098  
  1099 +out:
1099 1100 put_cpu();
1100 1101  
1101   -out:
1102 1102 n2_chunk_complete(req, err ? NULL : final_iv_addr);
1103 1103 return err;
1104 1104 }