We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e902549 + 070e6bf commit 3a29be9Copy full SHA for 3a29be9
1 file changed
src/audio/volume.c
@@ -350,7 +350,7 @@ static int volume_ctrl_get_cmd(struct comp_dev *dev,
350
int j;
351
352
/* validate */
353
- if (cdata->num_elems == 0 || cdata->num_elems >= SOF_IPC_MAX_CHANNELS) {
+ if (cdata->num_elems == 0 || cdata->num_elems > SOF_IPC_MAX_CHANNELS) {
354
trace_volume_error("gc0");
355
tracev_value(cdata->num_elems);
356
return -EINVAL;
0 commit comments