netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [IPV6] reability improvement
@ 2004-08-20 16:34 YOSHIFUJI Hideaki / 吉藤英明
  2004-08-20 21:11 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2004-08-20 16:34 UTC (permalink / raw)
  To: davem; +Cc: netdev

Hello.

D: Improve readability.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>

===== net/ipv6/ip6_flowlabel.c 1.15 vs edited =====
--- 1.15/net/ipv6/ip6_flowlabel.c	2004-07-08 07:49:52 +09:00
+++ edited/net/ipv6/ip6_flowlabel.c	2004-08-21 01:18:30 +09:00
@@ -538,7 +538,8 @@
 
 		/* Do not check for fault */
 		if (!freq.flr_label)
-			copy_to_user(optval + ((u8*)&freq.flr_label - (u8*)&freq), &fl->label, sizeof(fl->label));
+			copy_to_user(&((struct in6_flowlabel_req __user *) optval)->flr_label,
+				     &fl->label, sizeof(fl->label));
 
 		sfl1->fl = fl;
 		sfl1->next = np->ipv6_fl_list;

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [IPV6] reability improvement
  2004-08-20 16:34 [PATCH] [IPV6] reability improvement YOSHIFUJI Hideaki / 吉藤英明
@ 2004-08-20 21:11 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-08-20 21:11 UTC (permalink / raw)
  To: yoshfuji; +Cc: netdev

On Sat, 21 Aug 2004 01:34:34 +0900 (JST)
YOSHIFUJI Hideaki / ^[$B5HF#1QL@^[(B <yoshfuji@linux-ipv6.org> wrote:

> D: Improve readability.

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-20 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-20 16:34 [PATCH] [IPV6] reability improvement YOSHIFUJI Hideaki / 吉藤英明
2004-08-20 21:11 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).