summaryrefslogtreecommitdiff
path: root/drivers/tee/tee_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tee/tee_core.c')
-rw-r--r--drivers/tee/tee_core.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/tee/tee_core.c b/drivers/tee/tee_core.c
index 3dafbdc8d2c2..ef9642d72672 100644
--- a/drivers/tee/tee_core.c
+++ b/drivers/tee/tee_core.c
@@ -560,8 +560,7 @@ static int tee_ioctl_open_session(struct tee_context *ctx,
return -EINVAL;
if (arg.num_params) {
- params = kzalloc_objs(struct tee_param, arg.num_params,
- GFP_KERNEL);
+ params = kzalloc_objs(struct tee_param, arg.num_params);
if (!params)
return -ENOMEM;
uparams = uarg->params;
@@ -638,8 +637,7 @@ static int tee_ioctl_invoke(struct tee_context *ctx,
return -EINVAL;
if (arg.num_params) {
- params = kzalloc_objs(struct tee_param, arg.num_params,
- GFP_KERNEL);
+ params = kzalloc_objs(struct tee_param, arg.num_params);
if (!params)
return -ENOMEM;
uparams = uarg->params;
@@ -699,8 +697,7 @@ static int tee_ioctl_object_invoke(struct tee_context *ctx,
return -EINVAL;
if (arg.num_params) {
- params = kzalloc_objs(struct tee_param, arg.num_params,
- GFP_KERNEL);
+ params = kzalloc_objs(struct tee_param, arg.num_params);
if (!params)
return -ENOMEM;
uparams = uarg->params;