search for: size_error

Displaying 2 results from an estimated 2 matches for "size_error".

Did you mean: sieve_error
2011 Jun 09
2
[PATCH 7/7] [v5] drivers/virt: introduce Freescale hypervisor management driver
...s. + * For backwards compatibility with older applications, we only check + * if the size is too small, rather than unequal. + */ + + switch (_IOC_NR(cmd)) { + case (_IOC_NR(FSL_HV_IOCTL_PARTITION_RESTART)): + size = sizeof(struct fsl_hv_ioctl_restart); + if (_IOC_SIZE(cmd) < size) + goto size_error; + ret = ioctl_restart(arg); + break; + case (_IOC_NR(FSL_HV_IOCTL_PARTITION_GET_STATUS)): + size = sizeof(struct fsl_hv_ioctl_status); + if (_IOC_SIZE(cmd) < size) + goto size_error; + ret = ioctl_status(arg); + break; + case (_IOC_NR(FSL_HV_IOCTL_PARTITION_START)): + size = sizeof(str...
2011 Jun 09
2
[PATCH 7/7] [v5] drivers/virt: introduce Freescale hypervisor management driver
...s. + * For backwards compatibility with older applications, we only check + * if the size is too small, rather than unequal. + */ + + switch (_IOC_NR(cmd)) { + case (_IOC_NR(FSL_HV_IOCTL_PARTITION_RESTART)): + size = sizeof(struct fsl_hv_ioctl_restart); + if (_IOC_SIZE(cmd) < size) + goto size_error; + ret = ioctl_restart(arg); + break; + case (_IOC_NR(FSL_HV_IOCTL_PARTITION_GET_STATUS)): + size = sizeof(struct fsl_hv_ioctl_status); + if (_IOC_SIZE(cmd) < size) + goto size_error; + ret = ioctl_status(arg); + break; + case (_IOC_NR(FSL_HV_IOCTL_PARTITION_START)): + size = sizeof(str...