]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ccree: use signal safe completion wait
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 25 Jun 2017 07:47:24 +0000 (10:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jun 2017 14:29:15 +0000 (16:29 +0200)
commit05e63aa8e61db7a1fc951fa88576d640cbded187
tree41182d19f34656dc3226d7ec6f3b008dd233ee74
parent4f2e88eed19cd52334c3aa27616b01895e79897a
staging: ccree: use signal safe completion wait

We were waiting for a completion notification of HW DMA
operation using an interruptible wait which can result
in data corruption if a signal interrupted us while
DMA was not yet completed.

Fix this by moving to uninterrupted wait.

Fixes: b47cbd53c7 ("staging: ccree: introduce CryptoCell HW driver").
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_request_mgr.c