Whamcloud - gitweb
LU-5935 lnet: Fixes to make lnetctl function as expected.
[fs/lustre-release.git] / libcfs / libcfs / linux / linux-module.c
index 4cde538..7175e44 100644 (file)
@@ -76,7 +76,7 @@ int libcfs_ioctl_getdata(struct libcfs_ioctl_hdr **hdr_pp,
                RETURN(-EINVAL);
        }
 
                RETURN(-EINVAL);
        }
 
-       if (hdr.ioc_len < sizeof(struct libcfs_ioctl_data)) {
+       if (hdr.ioc_len < sizeof(struct libcfs_ioctl_hdr)) {
                CERROR("libcfs ioctl: user buffer too small for ioctl\n");
                RETURN(-EINVAL);
        }
                CERROR("libcfs ioctl: user buffer too small for ioctl\n");
                RETURN(-EINVAL);
        }