[lkml]   [2007]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] kernel/capability.c get_task_comm compile error (MMOTM)

    * Erez Zadok <> 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.

    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: 2007-11-11 15:23    [W:0.020 / U:16.420 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site