From: Thomas Meyer <thomas@m3y3r.de>
To: Herbert Xu <herbert@gondor.hengli.com.au>
Cc: davem@davemloft.net, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] n2_crypto: Fix a get/put_cpu() imbalance
Date: Sat, 13 Aug 2011 09:59:58 +0200 [thread overview]
Message-ID: <1313222402.16820.12.camel@localhost.localdomain> (raw)
In-Reply-To: <20110810105958.GA2607@gondor.apana.org.au>
From: Thomas Meyer <thomas@m3y3r.de>
Fix a get/put_cpu() imbalance in the error case when qp == NULL
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
Am Mittwoch, den 10.08.2011, 18:59 +0800 schrieb Herbert Xu:
On Sat, Aug 06, 2011 at 08:26:25AM +0000, Thomas Meyer wrote:
> > From: Thomas Meyer <thomas@m3y3r.de>
> >
> > Fix a get/put_cpu() imbalance in the error case when qp == NULL
> >
> > Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
>
> I tried to apply your patch but it doesn't work as your mailer
> has turned all the tabs into spaces.
>
Actually this was not my mailer's fault...
> Please resend and make
> sure that you can still apply the patch that the list forwards
> back to you.
>
> Thanks,
>
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
index d0183ddb..8944dab 100644
--- a/drivers/crypto/n2_core.c
+++ b/drivers/crypto/n2_core.c
@@ -1006,9 +1006,9 @@ static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt)
spin_unlock_irqrestore(&qp->lock, flags);
+out:
put_cpu();
-out:
n2_chunk_complete(req, NULL);
return err;
}
@@ -1096,9 +1096,9 @@ static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt)
spin_unlock_irqrestore(&qp->lock, flags);
+out:
put_cpu();
-out:
n2_chunk_complete(req, err ? NULL : final_iv_addr);
return err;
}
next prev parent reply other threads:[~2011-08-13 8:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-06 8:26 [PATCH] n2_crypto: Fix a get/put_cpu() imbalance Thomas Meyer
2011-08-08 5:55 ` David Miller
2011-08-10 10:59 ` Herbert Xu
2011-08-13 7:59 ` Thomas Meyer [this message]
2011-08-15 7:20 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1313222402.16820.12.camel@localhost.localdomain \
--to=thomas@m3y3r.de \
--cc=davem@davemloft.net \
--cc=herbert@gondor.hengli.com.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox