lkml.org 
[lkml]   [2002]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: Linux 2.5.18-dj1
    On Sun, May 26, 2002 at 12:53:14AM -0700, A Guy Called Tyketto wrote:
    > >>EIP; c01cbd2d <fb_copy_cmap+9d/2b0> <=====

    This oops has existed over several 2.5 versions. The following was thrown
    around to fix it (I don't remember who though).

    --- orig/drivers/video/fbcmap.c Fri May 3 11:12:44 2002
    +++ linux/drivers/video/fbcmap.c Fri May 10 19:39:38 2002
    @@ -150,9 +150,9 @@
    else
    tooff = from->start-to->start;
    size = to->len-tooff;
    - if (size > from->len-fromoff)
    + if (size > (int)(from->len-fromoff))
    size = from->len-fromoff;
    - if (size < 0)
    + if (size <= 0)
    return;
    size *= sizeof(u16);


    --
    Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
    http://www.arm.linux.org.uk/personal/aboutme.html

    -
    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-03-22 13:26    [W:0.031 / U:0.140 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site