projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0efd4d8
)
crypto: omap-sham - do not schedule tasklet if there is no active requests
author
Dmitry Kasatkin
<dmitry.kasatkin@nokia.com>
Thu, 2 Jun 2011 18:10:13 +0000
(21:10 +0300)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 29 Jun 2011 23:44:05 +0000
(07:44 +0800)
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/omap-sham.c
b/drivers/crypto/omap-sham.c
index
804c16b
..
6399a8f
100644
(file)
--- a/
drivers/crypto/omap-sham.c
+++ b/
drivers/crypto/omap-sham.c
@@
-1085,6
+1085,11
@@
static irqreturn_t omap_sham_irq(int irq, void *dev_id)
SHA_REG_CTRL_OUTPUT_READY);
omap_sham_read(dd, SHA_REG_CTRL);
+ if (!test_bit(FLAGS_BUSY, &dd->flags)) {
+ dev_warn(dd->dev, "Interrupt when no active requests.\n");
+ return IRQ_HANDLED;
+ }
+
set_bit(FLAGS_OUTPUT_READY, &dd->flags);
tasklet_schedule(&dd->done_task);