diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2017-01-01 03:56:26 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-02-07 08:56:20 +0300 |
commit | cfbf99801bcaf8398492ebc16af72259ad7aa146 (patch) | |
tree | 894246ad083181307bfde948e0ab41b2cc75b3da /tools/virtio | |
parent | fe73b582f179354e233e5deddbd274efe8d3bbb9 (diff) | |
download | linux-cfbf99801bcaf8398492ebc16af72259ad7aa146.tar.xz |
via-cuda: Fix re-initialization of reply_ptr and reading_reply
When reading_reply is set, reply_ptr points into an adb_request struct.
Conversely, when reply_ptr instead points into the global cuda_rbuf,
reading_reply must be false.
Unfortunately, this rule can be violated because re-initialization
of reply_ptr and reading_reply presently depends on the TREQ input.
Fix this by re-initializing reply_ptr and reading_reply as soon as they
are known to be invalid.
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/virtio')
0 files changed, 0 insertions, 0 deletions