|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] blktap2: Fix off-by-one error in driver l
# 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 <=
|
|
|
|
|