diff options
Diffstat (limited to 'drivers/tee/amdtee/core.c')
| -rw-r--r-- | drivers/tee/amdtee/core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/tee/amdtee/core.c b/drivers/tee/amdtee/core.c index 1ff4834722f7..a1347d04b3ac 100644 --- a/drivers/tee/amdtee/core.c +++ b/drivers/tee/amdtee/core.c @@ -38,7 +38,7 @@ static int amdtee_open(struct tee_context *ctx) { struct amdtee_context_data *ctxdata; - ctxdata = kzalloc_obj(*ctxdata, GFP_KERNEL); + ctxdata = kzalloc_obj(*ctxdata); if (!ctxdata) return -ENOMEM; @@ -122,7 +122,7 @@ static struct amdtee_session *alloc_session(struct amdtee_context_data *ctxdata, } /* Allocate a new session and add to list */ - sess = kzalloc_obj(*sess, GFP_KERNEL); + sess = kzalloc_obj(*sess); if (sess) { sess->ta_handle = ta_handle; kref_init(&sess->refcount); @@ -351,7 +351,7 @@ int amdtee_map_shmem(struct tee_shm *shm) if (!shm) return -EINVAL; - shmnode = kmalloc_obj(*shmnode, GFP_KERNEL); + shmnode = kmalloc_obj(*shmnode); if (!shmnode) return -ENOMEM; @@ -465,11 +465,11 @@ static int __init amdtee_driver_init(void) return rc; } - drv_data = kzalloc_obj(*drv_data, GFP_KERNEL); + drv_data = kzalloc_obj(*drv_data); if (!drv_data) return -ENOMEM; - amdtee = kzalloc_obj(*amdtee, GFP_KERNEL); + amdtee = kzalloc_obj(*amdtee); if (!amdtee) { rc = -ENOMEM; goto err_kfree_drv_data; |
