From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulyadi.santosa@gmail.com (Mulyadi Santosa) Date: Mon, 20 Dec 2010 16:33:59 +0700 Subject: add_timer crashes the kernel,Why? In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Mon, Dec 20, 2010 at 16:06, lijin liu wrote: > On Mon, Dec 20, 2010 at 4:42 PM, Raz 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