Merge "soc: qcom: hab: increase the maximum size of message"

This commit is contained in:
Linux Build Service Account 2018-06-28 13:21:38 -07:00 committed by Gerrit - the friendly Code Review server
commit d549a8ee6c
2 changed files with 1 additions and 2 deletions

View file

@ -1148,7 +1148,7 @@ static long hab_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
break; break;
case IOCTL_HAB_SEND: case IOCTL_HAB_SEND:
send_param = (struct hab_send *)data; send_param = (struct hab_send *)data;
if (send_param->sizebytes > HAB_MAX_MSG_SIZEBYTES) { if (send_param->sizebytes > HAB_HEADER_SIZE_MASK) {
ret = -EINVAL; ret = -EINVAL;
break; break;
} }

View file

@ -69,7 +69,6 @@ struct hab_info {
}; };
#define HAB_IOC_TYPE 0x0A #define HAB_IOC_TYPE 0x0A
#define HAB_MAX_MSG_SIZEBYTES 0x1000
#define IOCTL_HAB_SEND \ #define IOCTL_HAB_SEND \
_IOW(HAB_IOC_TYPE, 0x2, struct hab_send) _IOW(HAB_IOC_TYPE, 0x2, struct hab_send)