]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio/console: Allocate scatterlist according to the current pipe size
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 9 Aug 2012 12:31:20 +0000 (21:31 +0900)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 20 Sep 2012 00:14:51 +0000 (10:14 +1000)
commitd3630e8a79f2fb0e271fa01045a3fd05b6e63e80
tree7561eb43dc1798e194519bce488263eac775dbcd
parent289d37a11c60b39b79751c3c03e98e99b77a4fc9
virtio/console: Allocate scatterlist according to the current pipe size

Allocate scatterlist according to the current pipe size.
This allows splicing bigger buffer if the pipe size has
been changed by fcntl.

Changes in v2:
 - Just a minor fix for avoiding a confliction with previous patch.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c