diff options
Diffstat (limited to 'drivers/greybus/control.c')
| -rw-r--r-- | drivers/greybus/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/greybus/control.c b/drivers/greybus/control.c index b5cf49d09df2..aec3c8e3802a 100644 --- a/drivers/greybus/control.c +++ b/drivers/greybus/control.c @@ -446,7 +446,7 @@ struct gb_control *gb_control_create(struct gb_interface *intf) struct gb_connection *connection; struct gb_control *control; - control = kzalloc(sizeof(*control), GFP_KERNEL); + control = kzalloc_obj(*control); if (!control) return ERR_PTR(-ENOMEM); |
