WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] gnttab: Clear linked-list pointer whe

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] gnttab: Clear linked-list pointer when cancelling a callback handle.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 29 Oct 2008 16:30:18 -0700
Delivery-date: Wed, 29 Oct 2008 16:30:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] gnttab: Clear linked-list pointer when cancelling a callback handle., Xen patchbot-linux-2.6.18-xen <=