From: Kusanagi Kouichi Date: Wed, 16 Sep 2009 21:36:13 +0000 (+0000) Subject: tun: Return -EINVAL if neither IFF_TUN nor IFF_TAP is set. X-Git-Tag: v2.6.32-rc1~27^2~19 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36989b90879c785f95b877bdcf65a2527dadd893;p=pandora-kernel.git tun: Return -EINVAL if neither IFF_TUN nor IFF_TAP is set. After commit 2b980dbd77d229eb60588802162c9659726b11f4 ("lsm: Add hooks to the TUN driver") tun_set_iff doesn't return -EINVAL though neither IFF_TUN nor IFF_TAP is set. Signed-off-by: Kusanagi Kouichi Reviewed-by: Paul Moore Signed-off-by: David S. Miller --- Reading git-diff-tree failed