Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1687
b: refs/heads/master
c: 6c94d36
h: refs/heads/master
i:
  1685: 3513bf1
  1683: 56ad417
  1679: 0aac8d3
v: v3
  • Loading branch information
David S. Miller committed May 30, 2005
1 parent b4b7c01 commit 26d93e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 69f6a0fafcdf0bfe85af182695d6d38f80f9d549
refs/heads/master: 6c94d3611be61e4cff33b311f1a626d93d1d3e92
10 changes: 6 additions & 4 deletions trunk/net/ipv6/ip6_flowlabel.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,12 @@ int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen)
if (err)
goto done;

/* Do not check for fault */
if (!freq.flr_label)
copy_to_user(&((struct in6_flowlabel_req __user *) optval)->flr_label,
&fl->label, sizeof(fl->label));
if (!freq.flr_label) {
if (copy_to_user(&((struct in6_flowlabel_req __user *) optval)->flr_label,
&fl->label, sizeof(fl->label))) {
/* Intentionally ignore fault. */
}
}

sfl1->fl = fl;
sfl1->next = np->ipv6_fl_list;
Expand Down

0 comments on commit 26d93e9

Please sign in to comment.