mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 15:30:54 +07:00
Input: qt602240_ts - fix wrong sizeof in object table allocation
The kcalloc call for the object table is using sizeof(struct qt602240_data) when it should be using sizeof(struct qt6602240_object), resulting in a larger allocation than is required. Signed-off-by: Chris Leech <christopher.leech@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
8b5fce06f8
commit
ce16a474f6
@ -969,7 +969,7 @@ static int qt602240_initialize(struct qt602240_data *data)
|
||||
return error;
|
||||
|
||||
data->object_table = kcalloc(info->object_num,
|
||||
sizeof(struct qt602240_data),
|
||||
sizeof(struct qt602240_object),
|
||||
GFP_KERNEL);
|
||||
if (!data->object_table) {
|
||||
dev_err(&client->dev, "Failed to allocate memory\n");
|
||||
|
Loading…
Reference in New Issue
Block a user