|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH xenbus] GnttabQueryReference() incorrectly checks for GTF_readonly
From: Paul Durrant <pdurrant@xxxxxxxxxx>
GTF_readonly should be checked in the 'flags' field, not 'frame'. This patch
fixes the issue.
Reported-by: Connor Davis <connojd@xxxxxxxxxxxxxx>
Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx>
---
src/xenbus/gnttab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xenbus/gnttab.c b/src/xenbus/gnttab.c
index e590a5c..3fe52aa 100644
--- a/src/xenbus/gnttab.c
+++ b/src/xenbus/gnttab.c
@@ -587,7 +587,7 @@ GnttabQueryReference(
*Pfn = Context->Table[Reference].frame;
if (ReadOnly != NULL)
- *ReadOnly = (Context->Table[Reference].frame & GTF_readonly) ? TRUE :
FALSE;
+ *ReadOnly = (Context->Table[Reference].flags & GTF_readonly) ? TRUE :
FALSE;
return STATUS_SUCCESS;
--
2.17.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |