Skip to content

Commit

Permalink
Merge branch 'for-5.18/google' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Kosina committed Mar 23, 2022
2 parents a2ff005 + 01f1269 commit e0464ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-google-hammer.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int cbas_ec_query_base(struct cros_ec_device *ec_dev, bool get_state,
struct cros_ec_command *msg;
int ret;

msg = kzalloc(sizeof(*msg) + max(sizeof(u32), sizeof(*params)),
msg = kzalloc(struct_size(msg, data, max(sizeof(u32), sizeof(*params))),
GFP_KERNEL);
if (!msg)
return -ENOMEM;
Expand Down

0 comments on commit e0464ad

Please sign in to comment.