From: Amit Shah Date: Tue, 14 Sep 2010 07:56:16 +0000 (+0530) Subject: virtio: console: Prevent userspace from submitting NULL buffers X-Git-Tag: v2.6.36-rc6~86^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65745422a898741ee0e7068ef06624ab06e8aefa;p=pandora-kernel.git virtio: console: Prevent userspace from submitting NULL buffers A userspace could submit a buffer with 0 length to be written to the host. Prevent such a situation. This was not needed previously, but recent changes in the way write() works exposed this condition to trigger a virtqueue event to the host, causing a NULL buffer to be sent across. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell CC: stable@kernel.org --- Reading git-diff-tree failed