ia64/linux-2.6.18-xen.hg

changeset 715:a71e987e15fc

gnttab: Clear linked-list pointer when cancelling a callback handle.

Based on a patch by Jake Wires <jake.wires@citrix.com>.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Oct 29 10:12:14 2008 +0000 (2008-10-29)
parents de7f94bd650b
children eb759c00a1f8
files drivers/xen/core/gnttab.c
line diff
     1.1 --- a/drivers/xen/core/gnttab.c	Tue Oct 28 10:39:11 2008 +0000
     1.2 +++ b/drivers/xen/core/gnttab.c	Wed Oct 29 10:12:14 2008 +0000
     1.3 @@ -365,6 +365,7 @@ void gnttab_cancel_free_callback(struct 
     1.4  	for (pcb = &gnttab_free_callback_list; *pcb; pcb = &(*pcb)->next) {
     1.5  		if (*pcb == callback) {
     1.6  			*pcb = callback->next;
     1.7 +			callback->next = NULL;
     1.8  			break;
     1.9  		}
    1.10  	}