net/ipv6/* - compile warning cleanup
Subsystems (4)
PATCH 1/1 net/ipv6/* - compile warning cleanup
compile warning cleanup - handle copy_to/from_user error returns
Signed-off-by Chuck Short <[email protected]>
net/ipv6/ip6_flowlabel.c +4 -2
@@ -537,8 +537,10 @@/* 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 (copy_to_user (&((struct in6_flowlabel_req __user *) optval)->flr_label,&fl->label,sizeof (fl->label))) { + err = -EFAULT ; + goto done; + } sfl1->fl = fl; sfl1->next = np->ipv6_fl_list;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
On Fri, 27 May 2005 21:32:49 -0400 Chuck Short wrote:
| compile warning cleanup - handle copy_to/from_user error | returns
Thanks, but this was just fixed on the netdev mailing list.
---
~Randy
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors