]> 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>
Wed, 5 Oct 2011 01:01:25 +0000 (12:01 +1100)
commitc31be7a2ebcf3f734fc09c2d51406e8c2faf5321
tree51c33997104b9c2b3f7d8f9b0811b9125a8657cc
parent0058e33c09f34e44dcce59b6a244f7af8cda57c6
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