]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xenbus: maximum buffer size is XENSTORE_PAYLOAD_MAX
authorIan Campbell <ian.campbell@citrix.com>
Wed, 4 Jan 2012 11:39:51 +0000 (11:39 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 4 Jan 2012 22:02:04 +0000 (17:02 -0500)
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>
drivers/xen/xenbus/xenbus_dev_frontend.c

index aec01420d97944a1376c81d29f35fce9049e17cb..527dc2a3b89f167cd35cc919bf0da1442c49d238 100644 (file)
@@ -105,7 +105,7 @@ struct xenbus_file_priv {
        unsigned int len;
        union {
                struct xsd_sockmsg msg;
-               char buffer[PAGE_SIZE];
+               char buffer[XENSTORE_PAYLOAD_MAX];
        } u;
 
        /* Response queue. */