From: Sasha Levin Date: Wed, 28 Sep 2011 04:40:54 +0000 (+0000) Subject: virtio-net: Verify page list size before fitting into skb X-Git-Tag: v3.2-rc1~129^2~128 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e878d78b9a7403fabc89ecc93c56928b74d14f01;p=pandora-kernel.git virtio-net: Verify page list size before fitting into skb This patch verifies that the length of a buffer stored in a linked list of pages is small enough to fit into a skb. If the size is larger than a max size of a skb, it means that we shouldn't go ahead building skbs anyway since we won't be able to send the buffer as the user requested. Cc: Rusty Russell Cc: "Michael S. Tsirkin" Cc: virtualization@lists.linux-foundation.org Cc: netdev@vger.kernel.org Cc: kvm@vger.kernel.org Signed-off-by: Sasha Levin Signed-off-by: David S. Miller --- Reading git-diff-tree failed