|
@@ -535,10 +535,12 @@ release:
|
|
|
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;
|