summaryrefslogtreecommitdiff
path: root/drivers/greybus/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/greybus/connection.c')
-rw-r--r--drivers/greybus/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/greybus/connection.c b/drivers/greybus/connection.c
index 9c88861986c8..91fd5cbb716d 100644
--- a/drivers/greybus/connection.c
+++ b/drivers/greybus/connection.c
@@ -165,7 +165,7 @@ _gb_connection_create(struct gb_host_device *hd, int hd_cport_id,
}
hd_cport_id = ret;
- connection = kzalloc(sizeof(*connection), GFP_KERNEL);
+ connection = kzalloc_obj(*connection, GFP_KERNEL);
if (!connection) {
ret = -ENOMEM;
goto err_hd_cport_release;