crypto: talitos - Preempt overflow interrupts off-by-one fix
commit4b24ea971a93f5d0bec34bf7bfd0939f70cfaae6
authorVishnu Suresh <Vishnu@freescale.com>
Mon, 20 Oct 2008 13:06:18 +0000 (20 21:06 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:01:17 +0000 (25 11:01 +1100)
treed45d4e98934da0226c5f88474deaa36910ace25e
parent32bd78e0a5d34cd8e34046502bddcf31aeb38e64
crypto: talitos - Preempt overflow interrupts off-by-one fix

In commit ec6644d6325b5a38525f1d5b20fd4bf7db05cf2a "crypto: talitos - Preempt
overflow interrupts", the test in atomic_inc_not_zero was interpreted by the
author to be applied after the increment operation (not before). This off-by-one
fix prevents overflow error interrupts from occurring when requests are frequent
and large enough to do so.

Signed-off-by: Vishnu Suresh <Vishnu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c