aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid/hid-sensor-custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-sensor-custom.c')
-rw-r--r--drivers/hid/hid-sensor-custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c
index 761760668f6d..afffea894021 100644
--- a/drivers/hid/hid-sensor-custom.c
+++ b/drivers/hid/hid-sensor-custom.c
@@ -912,7 +912,7 @@ hid_sensor_custom_get_known(struct hid_sensor_hub_device *hsdev,
hid_sensor_custom_known_table;
struct hid_sensor_custom_properties *prop;
- prop = kmalloc(sizeof(struct hid_sensor_custom_properties), GFP_KERNEL);
+ prop = kmalloc_obj(struct hid_sensor_custom_properties);
if (!prop)
return -ENOMEM;