Searched refs:ioc_len (Results 1 – 4 of 4) sorted by relevance
93 if (hdr.ioc_len > OBD_MAX_IOCTL_BUFFER) { in obd_ioctl_getdata()95 hdr.ioc_len, OBD_MAX_IOCTL_BUFFER); in obd_ioctl_getdata()99 if (hdr.ioc_len < sizeof(struct obd_ioctl_data)) { in obd_ioctl_getdata()100 CERROR("User buffer too small for ioctl (%d)\n", hdr.ioc_len); in obd_ioctl_getdata()108 *buf = libcfs_kvzalloc(hdr.ioc_len, GFP_NOFS); in obd_ioctl_getdata()111 hdr.ioc_len); in obd_ioctl_getdata()114 *len = hdr.ioc_len; in obd_ioctl_getdata()117 if (copy_from_user(*buf, (void *)arg, hdr.ioc_len)) { in obd_ioctl_getdata()121 if (hdr.ioc_len != data->ioc_len) { in obd_ioctl_getdata()
60 if (hdr->ioc_len >= end - buf) { in libcfs_ioctl_getdata()65 if (hdr->ioc_len < sizeof(struct libcfs_ioctl_data)) { in libcfs_ioctl_getdata()70 orig_len = hdr->ioc_len; in libcfs_ioctl_getdata()71 if (copy_from_user(buf, arg, hdr->ioc_len)) in libcfs_ioctl_getdata()73 if (orig_len != data->ioc_len) in libcfs_ioctl_getdata()
47 __u32 ioc_len; member74 __u32 ioc_len; member88 data.ioc_len = sizeof(data); \154 if (data->ioc_len > (1<<30)) { in libcfs_ioctl_is_invalid()190 if ((__u32)libcfs_ioctl_packlen(data) != data->ioc_len) { in libcfs_ioctl_is_invalid()
126 __u32 ioc_len; member174 __u32 ioc_len; member191 if (data->ioc_len > OBD_MAX_IOCTL_BUFFER) { in obd_ioctl_is_invalid()244 if (obd_ioctl_packlen(data) > data->ioc_len) { in obd_ioctl_is_invalid()246 obd_ioctl_packlen(data), data->ioc_len); in obd_ioctl_is_invalid()