From: Herbert Xu Date: Tue, 14 Apr 2009 09:09:43 +0000 (-0700) Subject: tun: Fix crash with non-GSO users X-Git-Tag: v2.6.30-rc3~78^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eca93bcf73e5939053a94f7c48f8d6fe6199e00;p=pandora-kernel.git tun: Fix crash with non-GSO users When I made the tun driver use non-linear packets as the preferred option, it broke non-GSO users because they would end up allocating a completely non-linear packet, which triggers a crash when we call eth_type_trans. This patch reverts non-GSO users to using linear packets and adds a check to ensure that GSO users can't cause crashes in the same way. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed