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] [xen-3.0.5-testing] Ensure blk{tap/back}'s vm_area is no

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.0.5-testing] Ensure blk{tap/back}'s vm_area is not freed twice on error case.
From: "Xen patchbot-3.0.5-testing" <patchbot-3.0.5-testing@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Apr 2007 10:50:57 -0700
Delivery-date: Sat, 28 Apr 2007 11:53:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 Jake Wires <jwires@xxxxxxxxxxxxx>
# Date 1177721646 25200
# Node ID b915eb96097a23f0a4085fc732a721415967d600
# Parent  aedc55daf92b1056c25e24482ba130913b86b867
Ensure blk{tap/back}'s vm_area is not freed twice on error case.
Signed-off-by: Jake Wires <jwires@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/blkback/interface.c |    1 +
 linux-2.6-xen-sparse/drivers/xen/blktap/interface.c  |    1 +
 2 files changed, 2 insertions(+)

diff -r aedc55daf92b -r b915eb96097a 
linux-2.6-xen-sparse/drivers/xen/blkback/interface.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c      Fri Apr 27 
16:27:07 2007 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c      Fri Apr 27 
17:54:06 2007 -0700
@@ -136,6 +136,7 @@ int blkif_map(blkif_t *blkif, unsigned l
        {
                unmap_frontend_page(blkif);
                free_vm_area(blkif->blk_ring_area);
+               blkif->blk_rings.common.sring = NULL;
                return err;
        }
        blkif->irq = err;
diff -r aedc55daf92b -r b915eb96097a 
linux-2.6-xen-sparse/drivers/xen/blktap/interface.c
--- a/linux-2.6-xen-sparse/drivers/xen/blktap/interface.c       Fri Apr 27 
16:27:07 2007 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/blktap/interface.c       Fri Apr 27 
17:54:06 2007 -0700
@@ -137,6 +137,7 @@ int tap_blkif_map(blkif_t *blkif, unsign
        if (err < 0) {
                unmap_frontend_page(blkif);
                free_vm_area(blkif->blk_ring_area);
+               blkif->blk_rings.common.sring = NULL;
                return err;
        }
        blkif->irq = err;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.0.5-testing] Ensure blk{tap/back}'s vm_area is not freed twice on error case., Xen patchbot-3.0.5-testing <=