[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <562A3A00.60509@citrix.com>
Date: Fri, 23 Oct 2015 14:45:36 +0100
From: David Vrabel <david.vrabel@...rix.com>
To: Julien Grall <julien.grall@...rix.com>,
<xen-devel@...ts.xenproject.org>, <linux-kernel@...r.kernel.org>
CC: <linux-mm@...ck.org>, David Vrabel <david.vrabel@...rix.com>
Subject: Re: [Xen-devel] [PATCH] mm: hotplug: Don't release twice the resource
on error
On 23/10/15 13:57, Julien Grall wrote:
> The function add_memory_resource take in parameter a resource allocated
> by the caller. On error, both add_memory_resource and the caller will
> release the resource via release_memory_source.
[...]
> --- a/mm/memory_hotplug.c
> +++ b/mm/memory_hotplug.c
> @@ -1298,7 +1298,6 @@ error:
> /* rollback pgdat allocation and others */
> if (new_pgdat)
> rollback_node_hotadd(nid, pgdat);
> - release_memory_resource(res);
> memblock_remove(start, size);
I've folded this in, thanks.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists