Re: Realtime Preemption, 2.6.12, Beginners Guide?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 9 Jul 2005, Ingo Molnar wrote:

> this patch reduces ip_setsockopt's stack footprint from 572 bytes to 164 
> bytes. (Note: needs review and testing as i could not excercise this 
> multicast codepath.)

This patch breaks multicast source group joins.  Here's the fix:

--- linux.old/net/ipv4/ip_sockglue.c	2005-07-11 01:50:19.000000000 -0700
+++ linux/net/ipv4/ip_sockglue.c	2005-07-11 13:54:34.000000000 -0700
@@ -738,7 +738,7 @@
 				break;
 			if (optlen != sizeof(struct group_source_req))
 				goto free_greqs_e_inval;
-			if (copy_from_user(&greqs, optval, sizeof(*greqs))) {
+			if (copy_from_user(greqs, optval, sizeof(*greqs))) {
 				err = -EFAULT;
 				goto free_greqs_break;
 			}

Cheers,
--ww
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux