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-unstable] blktap2: Fix off-by-one error in driver l

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] blktap2: Fix off-by-one error in driver lookup
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Sep 2009 02:00:28 -0700
Delivery-date: Tue, 15 Sep 2009 02:01: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 1253002612 -3600
# Node ID 1cfd248d0fc8ff58d9c9c4b632f064a02e5ee28f
# Parent  855a574a5e883e7ce2d4053169d83b54a38bc9f9
blktap2: Fix off-by-one error in driver lookup

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/blktap2/drivers/tapdisk-server.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 855a574a5e88 -r 1cfd248d0fc8 tools/blktap2/drivers/tapdisk-server.c
--- a/tools/blktap2/drivers/tapdisk-server.c    Tue Sep 15 09:16:19 2009 +0100
+++ b/tools/blktap2/drivers/tapdisk-server.c    Tue Sep 15 09:16:52 2009 +0100
@@ -53,7 +53,7 @@ tapdisk_server_find_driver_interface(int
        int n;
 
        n = sizeof(dtypes) / sizeof(struct disk_info_t *);
-       if (type > n)
+       if (type >= n)
                return NULL;
 
        return dtypes[type]->drv;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] blktap2: Fix off-by-one error in driver lookup, Xen patchbot-unstable <=