commit | fe73b582f179354e233e5deddbd274efe8d3bbb9 | [log] [tgz] |
---|---|---|
author | Finn Thain <fthain@telegraphics.com.au> | Sat Dec 31 19:56:26 2016 -0500 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Tue Feb 07 16:56:19 2017 +1100 |
tree | 508e70bc6bc1e696ce0dc7143920ec97e49b929a | |
parent | fd7a65a27c6cb9b0920130d9402b95695168092d [diff] |
via-cuda: Prevent read buffer overflow If the Cuda driver does not enter the 'read_done' state for some reason, it may continue in the 'reading' state until the buffer overflows. Add a bounds check to prevent this. 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>