diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 92fa35abba92..060135ceaf0e 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
| @@ -2289,6 +2289,8 @@ static void tun_setup(struct net_device *dev) | |||
| 2289 | static int tun_validate(struct nlattr *tb[], struct nlattr *data[], | 2289 | static int tun_validate(struct nlattr *tb[], struct nlattr *data[], |
| 2290 | struct netlink_ext_ack *extack) | 2290 | struct netlink_ext_ack *extack) |
| 2291 | { | 2291 | { |
| 2292 | if (!data) | ||
| 2293 | return 0; | ||
| 2292 | return -EINVAL; | 2294 | return -EINVAL; |
| 2293 | } | 2295 | } |
| 2294 | 2296 | ||
