[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] gnttab: Clear linked-list pointer when cancelling a callback handle.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1225275134 0
# Node ID a71e987e15fc779fec01afaf3e0b52a2250fbf96
# Parent  de7f94bd650b7e00cd57191280c5f0959b2a286e
gnttab: Clear linked-list pointer when cancelling a callback handle.

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

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/core/gnttab.c |    1 +
 1 files changed, 1 insertion(+)

diff -r de7f94bd650b -r a71e987e15fc drivers/xen/core/gnttab.c
--- a/drivers/xen/core/gnttab.c Tue Oct 28 10:39:11 2008 +0000
+++ b/drivers/xen/core/gnttab.c Wed Oct 29 10:12:14 2008 +0000
@@ -365,6 +365,7 @@ void gnttab_cancel_free_callback(struct 
        for (pcb = &gnttab_free_callback_list; *pcb; pcb = &(*pcb)->next) {
                if (*pcb == callback) {
                        *pcb = callback->next;
+                       callback->next = NULL;
                        break;
                }
        }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.