virtio_console: Free buffer if splice fails
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Mon, 15 Oct 2012 07:57:33 +0000 (09:57 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Dec 2012 04:50:39 +0000 (15:20 +1030)
commitfe5295374ec9ac56ba3b619c5c1792b3fd66d859
tree63fc2e035669b7b44b3babc452b48ae49769787d
parentde929b04450f2ec984c2febb1249d0e0f993d0a2
virtio_console: Free buffer if splice fails

Free the allocated scatter list if send_pages fails in function
port_splice_write.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c