]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio: console: make discard_port_data() use get_inbuf()
authorAmit Shah <amit.shah@redhat.com>
Wed, 14 Sep 2011 07:36:45 +0000 (13:06 +0530)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 00:15:26 +0000 (11:15 +1100)
commit2088a4a5bafa7c76c483bf1e190759436c236c5c
treecd0f4f61fee857160bece34efb42b5b9b269d029
parent5bebab95cd1c215dcc0825f5be547d2266b6f90e
virtio: console: make discard_port_data() use get_inbuf()

discard_port_data() used virtqueue_get_buf() directly instead of using
get_inbuf().  Fix this, so that we get accounting for all received
bytes.  This also simplifies the code a lot.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c