aboutsummaryrefslogtreecommitdiff
path: root/board-js2x
diff options
context:
space:
mode:
authorKautuk Consul <kconsul@linux.vnet.ibm.com>2023-08-29 10:12:00 +1000
committerAlexey Kardashevskiy <aik@ozlabs.ru>2023-09-18 18:20:45 +1000
commit63b66a5147069bda815989732442cb07790609db (patch)
tree6bdfa18c90b2248480a05fb2fc2a1403752580a9 /board-js2x
parentadc561044f17d21c4d164cbe07068a3851450f8f (diff)
downloadSLOF-63b66a5147069bda815989732442cb07790609db.zip
SLOF-63b66a5147069bda815989732442cb07790609db.tar.gz
SLOF-63b66a5147069bda815989732442cb07790609db.tar.bz2
virtio-serial: Make read and write methods report failure
The read and write methods return successfully even if the virtio device is closed (virtiodev is 0) and it is not able to send or receive any characters. Make the read and write methods return 0 to indicate they did not succeed in this case. This also fixes an invalid stack access in the read method. Fixes: 8174acd ("virtio-serial: Close device completely") Signed-off-by: Kautuk Consul <kconsul@linux.vnet.ibm.com> Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'board-js2x')
0 files changed, 0 insertions, 0 deletions