summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)