aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam/caamalg.c
diff options
context:
space:
mode:
authorJamie Iles <jamie@jamieiles.com>2011-03-27 10:48:29 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2011-03-27 10:48:29 +0800
commit40bfc14f3250691dca6fcb00f791727e180a7f79 (patch)
tree1b1306360019360b23b60c56b86a38a55284ea07 /drivers/crypto/caam/caamalg.c
parent0475add3c27a43a6599fe6338f8fffe919a13547 (diff)
downloadkernel_samsung_smdk4412-40bfc14f3250691dca6fcb00f791727e180a7f79.zip
kernel_samsung_smdk4412-40bfc14f3250691dca6fcb00f791727e180a7f79.tar.gz
kernel_samsung_smdk4412-40bfc14f3250691dca6fcb00f791727e180a7f79.tar.bz2
crypto: picoxcell - fix possible status FIFO overflow
The SPAcc's have 2 equally sized FIFO's - a command FIFO and a status FIFO. The command FIFO takes the requests that are to be performed and the status FIFO reports the results. It is possible to get into the situation where there are more free spaces in the command FIFO than the status FIFO if we don't empty the status FIFO quickly enough resulting in a possible overflow of the status FIFO. This can result in incorrect status being reported in the status FIFO. Make sure that when we are submitting requests the number of requests that have been dispatched but not yet popped from the status FIFO does not exceed the size of a single FIFO. Signed-off-by: Jamie Iles <jamie@jamieiles.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/caamalg.c')
0 files changed, 0 insertions, 0 deletions