summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-roccat-lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-roccat-lua.c')
-rw-r--r--drivers/hid/hid-roccat-lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-roccat-lua.c b/drivers/hid/hid-roccat-lua.c
index 45e30549c236..a7ed873f8761 100644
--- a/drivers/hid/hid-roccat-lua.c
+++ b/drivers/hid/hid-roccat-lua.c
@@ -119,7 +119,7 @@ static int lua_init_specials(struct hid_device *hdev)
struct lua_device *lua;
int retval;
- lua = kzalloc(sizeof(*lua), GFP_KERNEL);
+ lua = kzalloc_obj(*lua, GFP_KERNEL);
if (!lua) {
hid_err(hdev, "can't alloc device descriptor\n");
return -ENOMEM;