summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-mf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-mf.c')
-rw-r--r--drivers/hid/hid-mf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-mf.c b/drivers/hid/hid-mf.c
index 49a4052a1496..6ff54a1ec697 100644
--- a/drivers/hid/hid-mf.c
+++ b/drivers/hid/hid-mf.c
@@ -88,7 +88,7 @@ static int mf_init(struct hid_device *hid)
input_ptr = input_ptr->next;
input = list_entry(input_ptr, struct hid_input, list);
- mf = kzalloc(sizeof(struct mf_device), GFP_KERNEL);
+ mf = kzalloc_obj(struct mf_device);
if (!mf)
return -ENOMEM;