]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tun: Return -EINVAL if neither IFF_TUN nor IFF_TAP is set.
authorKusanagi Kouichi <slash@ma.neweb.ne.jp>
Wed, 16 Sep 2009 21:36:13 +0000 (21:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Oct 2009 19:40:26 +0000 (12:40 -0700)
commit0568d3bf197d1e7db746d4a73cbd59b1850d23e6
tree31517738475e33d52b4127b21a40237a1b1960c6
parent7d07d6b33de75277e8a387a37ea9fc78c131d8f4
tun: Return -EINVAL if neither IFF_TUN nor IFF_TAP is set.

[ Upstream commit 36989b90879c785f95b877bdcf65a2527dadd893 ]

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 <slash@ma.neweb.ne.jp>
Reviewed-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/tun.c