aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs/9p.c
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2020-05-25 10:38:03 +0200
committerGreg Kurz <groug@kaod.org>2020-05-25 10:38:03 +0200
commit03556ea920b23c466ce7c1283199033de33ee671 (patch)
tree23343f95a98f9152c6d53f51a4a08440b7114d8f /hw/9pfs/9p.c
parentfea8f3ed739536fca027cf56af7f5576f37ef9cd (diff)
downloadqemu-03556ea920b23c466ce7c1283199033de33ee671.zip
qemu-03556ea920b23c466ce7c1283199033de33ee671.tar.gz
qemu-03556ea920b23c466ce7c1283199033de33ee671.tar.bz2
9pfs: include linux/limits.h for XATTR_SIZE_MAX
linux/limits.h should be included for the XATTR_SIZE_MAX definition used by v9fs_xattrcreate. Fixes: 3b79ef2cf488 ("9pfs: limit xattr size in xattrcreate") Signed-off-by: Dan Robertson <dan@dlrobertson.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <20200515203015.7090-2-dan@dlrobertson.com> Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'hw/9pfs/9p.c')
-rw-r--r--hw/9pfs/9p.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index a2a14b5..68c2df7 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -28,6 +28,7 @@
#include "sysemu/qtest.h"
#include "qemu/xxhash.h"
#include <math.h>
+#include <linux/limits.h>
int open_fd_hw;
int total_open_fd;