mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 21:56:41 +07:00
[media] saa7134: use correct array offset
Smatch complains that i can be one passed the end of the array if we don't hit the break statement. We should be using the "audio" here like we do in the other places. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
938ca36ef7
commit
e82db75d06
@ -605,7 +605,7 @@ static int tvaudio_thread(void *data)
|
||||
if (kthread_should_stop())
|
||||
break;
|
||||
if (UNSET == dev->thread.mode) {
|
||||
rx = tvaudio_getstereo(dev,&tvaudio[i]);
|
||||
rx = tvaudio_getstereo(dev, &tvaudio[audio]);
|
||||
mode = saa7134_tvaudio_rx2mode(rx);
|
||||
} else {
|
||||
mode = dev->thread.mode;
|
||||
|
Loading…
Reference in New Issue
Block a user