[lkml]   [2001]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: your mail
    > I have written a linux kernel module. The linux version is 2.2.14. 
    > 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.
    > Can you explain this behaviour?


    [Oh wait you want to know why...]


    1. You are using it for DMA
    2. You are putting it on the stack and causing a stack overflow

    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:13.924 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site