From 83cccc5d3294afd08f4b0e0209e9f638827f6c6f Mon Sep 17 00:00:00 2001 From: braam Date: Mon, 1 Jul 2002 23:24:26 +0000 Subject: [PATCH] - other half of the buffer fix. --- lustre/include/linux/lustre_idl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/include/linux/lustre_idl.h b/lustre/include/linux/lustre_idl.h index 94c8f4f..c86be5d 100644 --- a/lustre/include/linux/lustre_idl.h +++ b/lustre/include/linux/lustre_idl.h @@ -595,8 +595,8 @@ static inline int obd_ioctl_getdata(char **buf, int *len, void *arg) return -EINVAL; } - if (hdr.ioc_len > *len) { - printk("OBD: user buffer exceeds kernel buffer\n"); + if (hdr.ioc_len > 8192) { + printk("OBD: user buffer exceeds 8192 max buffer\n"); return -EINVAL; } -- 1.8.3.1