From: Amit Shah Date: Wed, 14 Sep 2011 07:36:40 +0000 (+0530) Subject: virtio: console: Ignore port name update request if name already set X-Git-Tag: v3.2-rc1~83^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=291024ef351328e7b4ca6bae798abc816a43653c;p=pandora-kernel.git virtio: console: Ignore port name update request if name already set We don't allow port name changes dynamically for a port. So any requests by the host to change the name are ignored. Before this patch, if the hypervisor sent a port name while we had one set already, we would leak memory equivalent to the size of the old name. This scenario wasn't expected so far, but with the suspend-resume support, we'll send the VIRTIO_CONSOLE_PORT_READY message after restore, which can get us into this situation. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell --- Reading git-diff-tree failed