diff options
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 7ea75529eabb..9f9983b0a27d 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -3714,8 +3714,7 @@ apply_wqattrs_prepare(struct workqueue_struct *wq, | |||
3714 | 3714 | ||
3715 | lockdep_assert_held(&wq_pool_mutex); | 3715 | lockdep_assert_held(&wq_pool_mutex); |
3716 | 3716 | ||
3717 | ctx = kzalloc(sizeof(*ctx) + nr_node_ids * sizeof(ctx->pwq_tbl[0]), | 3717 | ctx = kzalloc(struct_size(ctx, pwq_tbl, nr_node_ids), GFP_KERNEL); |
3718 | GFP_KERNEL); | ||
3719 | 3718 | ||
3720 | new_attrs = alloc_workqueue_attrs(GFP_KERNEL); | 3719 | new_attrs = alloc_workqueue_attrs(GFP_KERNEL); |
3721 | tmp_attrs = alloc_workqueue_attrs(GFP_KERNEL); | 3720 | tmp_attrs = alloc_workqueue_attrs(GFP_KERNEL); |