3 messages in com.xensource.lists.xen-devel[Xen-devel] [PATCH] Null pointer dere...
FromSent OnAttachments
Glauber de Oliveira Costa26 Dec 2005 07:58.Other
Vincent Hanquez27 Dec 2005 07:54 
Glauber de Oliveira Costa27 Dec 2005 08:17 
Subject:[Xen-devel] [PATCH] Null pointer dereference at free_vm_area()
From:Glauber de Oliveira Costa (glom@br.ibm.com)
Date:12/26/2005 07:58:35 AM
List:com.xensource.lists.xen-devel
Attachments:
free_return_null - 0.4k

Hi folks,

The free_vm_area() function may crash if it gets a NULL pointer as a parameter. I do think that the right behaviour should be returning in this case. This is, for example, the same behaviour of kfree(), and as alloc_vm_area() may also return NULL, it may lead to a more elegant alloc/free sequence in case of a fail.

In case you agree with that, a patch follows.