|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] pciback: return correct length during 64-bit BAR sizing
# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1471846647 -7200
# Mon Aug 22 08:17:27 2016 +0200
# Node ID 6be09a92f6c8f057a51bcfc8e092d9ea15b617a8
# Parent 7cb172c4686775ed84504a8649eaa5854573110e
pciback: return correct length during 64-bit BAR sizing
c/s 1314:7b1fb51f18e3 ("pciback: return proper values during BAR
sizing") introduced an off-by-one mistake.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
diff -r 7cb172c46867 -r 6be09a92f6c8 drivers/xen/pciback/conf_space_header.c
--- a/drivers/xen/pciback/conf_space_header.c Fri Jul 08 10:31:37 2016 +0200
+++ b/drivers/xen/pciback/conf_space_header.c Mon Aug 22 08:17:27 2016 +0200
@@ -205,8 +205,8 @@ static inline void read_dev_bar(struct p
(PCI_BASE_ADDRESS_SPACE_MEMORY |
PCI_BASE_ADDRESS_MEM_TYPE_64))) {
bar_info->val = res[pos - 1].start >> 32;
- bar_info->len_val = -(res[pos].end - res[pos].start
- + 1) >> 32;
+ bar_info->len_val = -(res[pos - 1].end
+ - res[pos - 1].start + 1) >> 32;
return;
}
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |