lkml.org 
[lkml]   [2011]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 1/2] mm/memblock.c: return -ENOMEM instead of -ENXIO on failure of debugfs_create_dir in memblock_init_debugfs
    On the failure of debugfs_create_dir, we should return -ENOMEM
    instead of -ENXIO.

    The patch is against 3.1.


    Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
    ---
    mm/memblock.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/mm/memblock.c b/mm/memblock.c
    index ccbf973..4d4d5ee 100644
    --- a/mm/memblock.c
    +++ b/mm/memblock.c
    @@ -852,7 +852,7 @@ static int __init memblock_init_debugfs(void)
    {
    struct dentry *root = debugfs_create_dir("memblock", NULL);
    if (!root)
    - return -ENXIO;
    + return -ENOMEM;
    debugfs_create_file("memory", S_IRUGO, root, &memblock.memory, &memblock_debug_fops);
    debugfs_create_file("reserved", S_IRUGO, root, &memblock.reserved, &memblock_debug_fops);

    --
    1.7.1


    \
     
     \ /
      Last update: 2011-11-09 03:03    [W:0.019 / U:213.056 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site