[lkml]   [2001]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread

    --On Tuesday, October 02, 2001 3:29 PM +0000 Dinesh Gandhewar
    <> wrote:

    > In this module I have declared an array of size 2048. If I use this
    > array, the execution of this module function causes kernel to reboot. If
    > I kmalloc() this array then execution of this module function doesnot
    > cause any problem.

    If you are allocating it on the stack (i.e. as a local variable)
    you are probably running out of kernel stack space (depending
    what it's an array of).

    If you are declaring it non-local, it's possible you are
    overwriting the end of it, and, kmalloc() being what it
    is, there happens to be some wasted space next to it.

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

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