Home
last modified time | relevance | path

Searched hist:cfbf99801bcaf8398492ebc16af72259ad7aa146 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/macintosh/
H A Dvia-cuda.cdiff cfbf99801bcaf8398492ebc16af72259ad7aa146 Sat Dec 31 18:56:26 CST 2016 Finn Thain <fthain@telegraphics.com.au> 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>