summaryrefslogtreecommitdiff
path: root/drivers/greybus/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/greybus/interface.c')
-rw-r--r--drivers/greybus/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/greybus/interface.c b/drivers/greybus/interface.c
index a0f3e9422721..881eb5e545a0 100644
--- a/drivers/greybus/interface.c
+++ b/drivers/greybus/interface.c
@@ -789,7 +789,7 @@ struct gb_interface *gb_interface_create(struct gb_module *module,
struct gb_host_device *hd = module->hd;
struct gb_interface *intf;
- intf = kzalloc(sizeof(*intf), GFP_KERNEL);
+ intf = kzalloc_obj(*intf, GFP_KERNEL);
if (!intf)
return NULL;