diff options
author | Ingo Tuchscherer | 2016-07-25 14:52:28 +0200 |
---|---|---|
committer | Martin Schwidefsky | 2016-07-31 05:27:58 -0400 |
commit | d6d86c57d77d466df2096b134e5f54463d3f0fb8 (patch) | |
tree | e228aa3826f9e587db7c2d5f88e0e6f36da78477 /arch/s390 | |
parent | 4475aeb8b77db34dea96b09900ba0cb245b6fb42 (diff) |
s390/zcrypt: Fix zcrypt suspend/resume behavior
The device suspend call triggers all ap devices to fetch potentially
available response messages from the queues. Therefore the
corresponding zcrypt device, that is allocated asynchronously after
ap device probing, needs to be fully prepared. This race condition
could lead to uninitialized response buffers while trying to read
from the queues.
Introduce a new callback within the ap layer to get noticed when a
zcrypt device is fully prepared. Additional checks prevent reading
from devices that are not fully prepared.
Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions