X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=drivers%2Fnet%2Ftun.c;h=6032ec80956c6265d6e97a7268a51469783ad699;hb=66a37fc02dffc240c28dc56f1f502f521944f3c6;hp=e33ec3bee2e5b81b3df5d909a6b01ea99fd3a8da;hpb=3411c22ecc5a55b63e5b6314b02b0075830c32e3;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git diff --git a/drivers/net/tun.c b/drivers/net/tun.c index e33ec3bee2e5..6032ec80956c 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1472,7 +1472,9 @@ static void tun_setup(struct net_device *dev) */ static int tun_validate(struct nlattr *tb[], struct nlattr *data[]) { - return -EINVAL; + /* NL_SET_ERR_MSG(extack, + "tun/tap creation via rtnetlink is not supported."); */ + return -EOPNOTSUPP; } static struct rtnl_link_ops tun_link_ops __read_mostly = {