On Thu, Nov 03, 2016 at 10:40:14AM +0100, Laurent Vivier wrote: > > void *alloc_page() > > { > > void *p; > > > > + spin_lock(&heap_lock); > > + > > if (!free) > > - return 0; > > + return NULL; > > You must unlock heap_lock before return Doh! Nice catch! Thanks, drew -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html