aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-01-04 06:39:51 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-01-04 17:02:04 -0500
commit50bf73796e85ed6a061df6d8474f7cef7870df6a (patch)
tree27ccd8abb98723da4338075d2e69bc0e688efa5a /drivers/xen
parent9e7860cee18241633eddb36a4c34c7b61d8cecbc (diff)
xenbus: maximum buffer size is XENSTORE_PAYLOAD_MAX
Use this now that it is defined even though it happens to be == PAGE_SIZE. The code which takes requests from userspace already validates against the size of this buffer so no further checks are required to ensure that userspace requests comply with the protocol in this respect. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Haogang Chen <haogangchen@gmail.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/xenbus/xenbus_dev_frontend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c
index aec01420d979..527dc2a3b89f 100644
--- a/drivers/xen/xenbus/xenbus_dev_frontend.c
+++ b/drivers/xen/xenbus/xenbus_dev_frontend.c
@@ -105,7 +105,7 @@ struct xenbus_file_priv {
105 unsigned int len; 105 unsigned int len;
106 union { 106 union {
107 struct xsd_sockmsg msg; 107 struct xsd_sockmsg msg;
108 char buffer[PAGE_SIZE]; 108 char buffer[XENSTORE_PAYLOAD_MAX];
109 } u; 109 } u;
110 110
111 /* Response queue. */ 111 /* Response queue. */