Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sound/soc/sof/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ int snd_sof_bytes_get(struct snd_kcontrol *kcontrol,
if (data->size > be->max - sizeof(*data)) {
dev_err_ratelimited(scomp->dev,
"error: %u bytes of control data is invalid, max is %zu\n",
data->size, (size_t)be->max - sizeof(*data));
data->size, be->max - sizeof(*data));
return -EINVAL;
}

Expand Down Expand Up @@ -267,7 +267,7 @@ int snd_sof_bytes_put(struct snd_kcontrol *kcontrol,
if (data->size > be->max - sizeof(*data)) {
dev_err_ratelimited(scomp->dev,
"error: data size too big %u bytes max is %zu\n",
data->size, (size_t)be->max - sizeof(*data));
data->size, be->max - sizeof(*data));
return -EINVAL;
}

Expand Down Expand Up @@ -390,7 +390,7 @@ int snd_sof_bytes_ext_volatile_get(struct snd_kcontrol *kcontrol, unsigned int _
if (cdata->data->size > be->max - sizeof(const struct sof_abi_hdr)) {
dev_err_ratelimited(scomp->dev, "error: user data size %d exceeds max size %zu.\n",
cdata->data->size,
(size_t)be->max - sizeof(const struct sof_abi_hdr));
be->max - sizeof(const struct sof_abi_hdr));
ret = -EINVAL;
goto out;
}
Expand Down Expand Up @@ -443,7 +443,7 @@ int snd_sof_bytes_ext_get(struct snd_kcontrol *kcontrol,
if (cdata->data->size > be->max - sizeof(const struct sof_abi_hdr)) {
dev_err_ratelimited(scomp->dev, "error: user data size %d exceeds max size %zu.\n",
cdata->data->size,
(size_t)be->max - sizeof(const struct sof_abi_hdr));
be->max - sizeof(const struct sof_abi_hdr));
return -EINVAL;
}

Expand Down
2 changes: 1 addition & 1 deletion sound/soc/sof/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ static int sof_control_load_bytes(struct snd_soc_component *scomp,
/* init the get/put bytes data */
if (priv_size > max_size - sizeof(struct sof_ipc_ctrl_data)) {
dev_err(scomp->dev, "err: bytes data size %zu exceeds max %zu.\n",
priv_size, (size_t)max_size - sizeof(struct sof_ipc_ctrl_data));
priv_size, max_size - sizeof(struct sof_ipc_ctrl_data));
ret = -EINVAL;
goto out;
}
Expand Down