add_timer crashes the kernel,Why?

Mulyadi Santosa mulyadi.santosa at gmail.com
Mon Dec 20 04:33:59 EST 2010


On Mon, Dec 20, 2010 at 16:06, lijin liu <llj098 at gmail.com> wrote:
> On Mon, Dec 20, 2010 at 4:42 PM, Raz <raziebe at gmail.com> wrote:
>> try to remove mytimer from stack
>
> Yes, I made a stupid mistake, It works now.

ah so you put all of the mentioned code in module_init? no wonder
then....init finishes...code and stack cleaned up....timer refers to
NULL...boom.

next time, please paste the exact code...so people didn't mis conclude
the statement....

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list