lkml.org 
[lkml]   [2005]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: Realtime Preemption, 2.6.12, Beginners Guide?
    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 majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-07-12 00:58    [W:0.038 / U:36.012 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site