Re: [Xen-devel] [PATCH] mm: hotplug: Don't release twice the resource on error

2015-10-23 Thread David Vrabel
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 >

[Xen-devel] [PATCH] mm: hotplug: Don't release twice the resource on error

2015-10-23 Thread Julien Grall
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. This will result to Linux crashing when the caller is trying to release the resource: CPU: 1 PID: 45 Comm: