Re: Problem in using Kernel Timers: Sleeping function called from invalid context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ganesh PS wrote:
> void gen_sig(void){
>     struct task_struct *p=NULL;
>     p=kmalloc(sizeof(struct task_struct), GFP_KERNEL);
> 
>     p = find_task_by_pid(pid); /*Received from a user program through ioctl()*/

What is this kmalloc() for?
You don't kfree() this pointer?

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux