Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15291
b: refs/heads/master
c: 7eb1b3d
h: refs/heads/master
i:
  15289: 9921e06
  15287: deee24f
v: v3
  • Loading branch information
Mika Kukkonen authored and David S. Miller committed Dec 22, 2005
1 parent f6ec6e5 commit 2853dd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d77d59f6293438f25e0560172699c0d3e4ef5ac
refs/heads/master: 7eb1b3d372a53fe9220b9e3b579886db0fe2f897
6 changes: 5 additions & 1 deletion trunk/net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ static int vlan_ioctl_handler(void __user *arg)
break;
case GET_VLAN_REALDEV_NAME_CMD:
err = vlan_dev_get_realdev_name(args.device1, args.u.device2);
if (err)
goto out;
if (copy_to_user(arg, &args,
sizeof(struct vlan_ioctl_args))) {
err = -EFAULT;
Expand All @@ -761,6 +763,8 @@ static int vlan_ioctl_handler(void __user *arg)

case GET_VLAN_VID_CMD:
err = vlan_dev_get_vid(args.device1, &vid);
if (err)
goto out;
args.u.VID = vid;
if (copy_to_user(arg, &args,
sizeof(struct vlan_ioctl_args))) {
Expand All @@ -774,7 +778,7 @@ static int vlan_ioctl_handler(void __user *arg)
__FUNCTION__, args.cmd);
return -EINVAL;
};

out:
return err;
}

Expand Down

0 comments on commit 2853dd0

Please sign in to comment.