]> 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 23:04:27 +0000 (10:04 +1100)
commit3c196fc32cd9c7be7641996facc6b1874b857360
tree10727e0239d07ea4f295880c37ce889baa94acf5
parent6f6f8f38fb97e8181111e1984f077835e5a16961
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