diff options
Diffstat (limited to 'drivers/hid/hid-haptic.c')
| -rw-r--r-- | drivers/hid/hid-haptic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-haptic.c b/drivers/hid/hid-haptic.c index fc8a9997f815..84f4b1ece777 100644 --- a/drivers/hid/hid-haptic.c +++ b/drivers/hid/hid-haptic.c @@ -474,8 +474,8 @@ int hid_haptic_init(struct hid_device *hdev, ret = -ENOMEM; goto duration_map; } - haptic->effect = kcalloc(FF_MAX_EFFECTS, - sizeof(struct hid_haptic_effect), GFP_KERNEL); + haptic->effect = kzalloc_objs(struct hid_haptic_effect, FF_MAX_EFFECTS, + GFP_KERNEL); if (!haptic->effect) { ret = -ENOMEM; goto output_queue; |
