lkml.org 
[lkml]   [2012]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 0/8] remove memory info from list before freeing it
    We free info, but we forget to remove it from the list. It will cause
    unexpected problem when we access the list next time.

    Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
    ---
    drivers/acpi/acpi_memhotplug.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
    index 8fe0e02..5cafd6b 100644
    --- a/drivers/acpi/acpi_memhotplug.c
    +++ b/drivers/acpi/acpi_memhotplug.c
    @@ -323,6 +323,7 @@ static int acpi_memory_disable_device(struct acpi_memory_device *mem_device)
    if (result)
    return result;
    }
    + list_del(&info->list);
    kfree(info);
    }

    --
    1.7.1


    \
     
     \ /
      Last update: 2012-07-20 09:41    [W:0.024 / U:150.160 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site