summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-06-28 13:21:38 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-06-28 13:21:37 -0700
commitd549a8ee6c6bdda1d08aba63d2ca5f5e71caed89 (patch)
tree450f2bfd7f003d0fba6a0b80afd412b40223e841
parent709f444c2a46490caf88b4626a9655556d386c32 (diff)
parentad106a695ea19e6203c43e8f6c864444e8867167 (diff)
Merge "soc: qcom: hab: increase the maximum size of message"
-rw-r--r--drivers/soc/qcom/hab/hab.c2
-rw-r--r--include/uapi/linux/hab_ioctl.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/qcom/hab/hab.c b/drivers/soc/qcom/hab/hab.c
index 48d61870f776..ef249bcba68c 100644
--- a/drivers/soc/qcom/hab/hab.c
+++ b/drivers/soc/qcom/hab/hab.c
@@ -1148,7 +1148,7 @@ static long hab_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
break;
case IOCTL_HAB_SEND:
send_param = (struct hab_send *)data;
- if (send_param->sizebytes > HAB_MAX_MSG_SIZEBYTES) {
+ if (send_param->sizebytes > HAB_HEADER_SIZE_MASK) {
ret = -EINVAL;
break;
}
diff --git a/include/uapi/linux/hab_ioctl.h b/include/uapi/linux/hab_ioctl.h
index 83b5da236888..70e16433044e 100644
--- a/include/uapi/linux/hab_ioctl.h
+++ b/include/uapi/linux/hab_ioctl.h
@@ -69,7 +69,6 @@ struct hab_info {
};
#define HAB_IOC_TYPE 0x0A
-#define HAB_MAX_MSG_SIZEBYTES 0x1000
#define IOCTL_HAB_SEND \
_IOW(HAB_IOC_TYPE, 0x2, struct hab_send)