diff options
Diffstat (limited to 'drivers/most/core.c')
| -rw-r--r-- | drivers/most/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/most/core.c b/drivers/most/core.c index 40d63e38fef5..3bbe8bed402a 100644 --- a/drivers/most/core.c +++ b/drivers/most/core.c @@ -880,7 +880,7 @@ static int arm_mbo_chain(struct most_channel *c, int dir, atomic_set(&c->mbo_nq_level, 0); for (i = 0; i < c->cfg.num_buffers; i++) { - mbo = kzalloc(sizeof(*mbo), GFP_KERNEL); + mbo = kzalloc_obj(*mbo, GFP_KERNEL); if (!mbo) goto flush_fifos; @@ -1300,7 +1300,7 @@ int most_register_interface(struct most_interface *iface) return id; } - iface->p = kzalloc(sizeof(*iface->p), GFP_KERNEL); + iface->p = kzalloc_obj(*iface->p, GFP_KERNEL); if (!iface->p) { ida_free(&mdev_id, id); put_device(iface->dev); @@ -1324,7 +1324,7 @@ int most_register_interface(struct most_interface *iface) for (i = 0; i < iface->num_channels; i++) { const char *name_suffix = iface->channel_vector[i].name_suffix; - c = kzalloc(sizeof(*c), GFP_KERNEL); + c = kzalloc_obj(*c, GFP_KERNEL); if (!c) goto err_free_resources; if (!name_suffix) |
