Re: [PATCH] kernel/capability.c get_task_comm compile error (MMOTM)

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

 



* Erez Zadok <[email protected]> wrote:

> Small patch below fixes compile error.

> +			char name[sizeof(current->comm)];
>  			warned++;
>  			printk(KERN_INFO
>  			       "warning: process `%s' sets w/ old libcap\n",
> -			       get_task_comm(current));
> +			       get_task_comm(name, current));

that's buggy - get_task_comm() returns void.

the proper fix would be to first do a get_task_comm() then pass in 
'name' as an argument to printk.

	Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux