]> 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>
Thu, 15 Sep 2011 00:38:14 +0000 (10:38 +1000)
commitd3729a845608e0322c1518200da338045d4c75e9
tree20f7d6b46d23fcc69ff2c39dfafbc6946ae90177
parent181d79a26d7e40078755281281b4ff19ed7f2f10
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