lkml.org 
[lkml]   [2009]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch 08/29] GRU - fix bug in module unload
    From: Jack Steiner <steiner@sgi.com>

    Fix bug in module unload. Previous code was not correctly
    deleting the files in /proc.

    Signed-off-by: Jack Steiner <steiner@sgi.com>


    ---
    drivers/misc/sgi-gru/gruprocfs.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux/drivers/misc/sgi-gru/gruprocfs.c
    ===================================================================
    --- linux.orig/drivers/misc/sgi-gru/gruprocfs.c 2009-11-20 09:32:29.000000000 -0600
    +++ linux/drivers/misc/sgi-gru/gruprocfs.c 2009-11-20 09:32:30.000000000 -0600
    @@ -351,7 +351,7 @@ static void delete_proc_files(void)
    for (p = proc_files; p->name; p++)
    if (p->entry)
    remove_proc_entry(p->name, proc_gru);
    - remove_proc_entry("gru", NULL);
    + remove_proc_entry("gru", proc_gru->parent);
    }
    }



    \
     
     \ /
      Last update: 2009-11-24 16:11    [W:0.019 / U:3.644 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site