Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1371744
| From | "K. Y. Srinivasan" <kys@microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/7] drivers:hv: Reverse order of resources in hyperv_mmio |
| Date | 2016-04-05 17:50 +0200 |
| Message-ID | <rkBoT-66v-37@gated-at.bofh.it> (permalink) |
| References | <rkBoR-66v-3@gated-at.bofh.it> <rkBoR-66v-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Jake Oshins <jakeo@microsoft.com>
A patch later in this series allocates child nodes
in this resource tree. For that to work, this tree
needs to be sorted in ascending order.
Signed-off-by: Jake Oshins <jakeo@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
Greg, please apply this to the 4.6 tree.
drivers/hv/vmbus_drv.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index 60553c1..1ce47d0 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -1049,7 +1049,6 @@ static acpi_status vmbus_walk_resources(struct acpi_resource *res, void *ctx)
new_res->end = end;
/*
- * Stick ranges from higher in address space at the front of the list.
* If two ranges are adjacent, merge them.
*/
do {
@@ -1070,7 +1069,7 @@ static acpi_status vmbus_walk_resources(struct acpi_resource *res, void *ctx)
break;
}
- if ((*old_res)->end < new_res->start) {
+ if ((*old_res)->start > new_res->end) {
new_res->sibling = *old_res;
if (prev_res)
(*prev_res)->sibling = new_res;
--
1.7.4.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/7] drivers:hv: Lock access to hyperv_mmio resource tree "K. Y. Srinivasan" <kys@microsoft.com> - 2016-04-05 17:50 +0200 [PATCH 6/7] drivers:hv: Record MMIO range in use by frame buffer "K. Y. Srinivasan" <kys@microsoft.com> - 2016-04-05 17:50 +0200 [PATCH 5/7] drivers:hv: Track allocations of children of hv_vmbus in private resource tree "K. Y. Srinivasan" <kys@microsoft.com> - 2016-04-05 17:50 +0200 [PATCH 4/7] drivers:hv: Reverse order of resources in hyperv_mmio "K. Y. Srinivasan" <kys@microsoft.com> - 2016-04-05 17:50 +0200 [PATCH 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers. "K. Y. Srinivasan" <kys@microsoft.com> - 2016-04-05 17:50 +0200
csiph-web