[lkml]   [1999]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: calling skb_queue_purge() causes oops when called from FreeS/WAN under 2.2.x

    > Can you quote the lines or tell me what version of the file you are

    pfkey_v2.c, pfkey_upmsg():

    if(!(skb = alloc_skb(pfkey_msg->sadb_msg_len, GFP_ATOMIC) )) {
    return -ENOBUFS;

    skb->h.raw = skb_put(skb, pfkey_msg->sadb_msg_len);
    memcpy(skb->h.raw, pfkey_msg, pfkey_msg->sadb_msg_len * IPSEC_PFKEYv2_ALIGN);

    > choice if we are to continue to support more than one kernel version.

    Look at ethernet drivers, f.e. drivers/net/tulip.c. They compile
    for any kernel, including really ancient ones and contain not so
    much of ifdefs. F.e. look at macro DEV_ALLOC_SKB(). You could use
    the same approach. Now it is just unparsable.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:54    [W:0.017 / U:42.988 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site