summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-thrustmaster.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-thrustmaster.c')
-rw-r--r--drivers/hid/hid-thrustmaster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-thrustmaster.c b/drivers/hid/hid-thrustmaster.c
index 0bf70664c35e..15847eef4ac0 100644
--- a/drivers/hid/hid-thrustmaster.c
+++ b/drivers/hid/hid-thrustmaster.c
@@ -308,7 +308,7 @@ static int thrustmaster_probe(struct hid_device *hdev, const struct hid_device_i
}
// Now we allocate the tm_wheel
- tm_wheel = kzalloc(sizeof(struct tm_wheel), GFP_KERNEL);
+ tm_wheel = kzalloc_obj(struct tm_wheel, GFP_KERNEL);
if (!tm_wheel) {
ret = -ENOMEM;
goto error1;
@@ -328,7 +328,7 @@ static int thrustmaster_probe(struct hid_device *hdev, const struct hid_device_i
goto error3;
}
- tm_wheel->response = kzalloc(sizeof(struct tm_wheel_response), GFP_KERNEL);
+ tm_wheel->response = kzalloc_obj(struct tm_wheel_response, GFP_KERNEL);
if (!tm_wheel->response) {
ret = -ENOMEM;
goto error4;