mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Merge "input: qcom-hv-haptics: fix out of bound of FIFO samples array"
This commit is contained in:
commit
7c3f466a36
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ static int get_fifo_play_length_us(struct fifo_cfg *fifo, u32 t_lra_us)
|
|||
if (!fifo)
|
||||
return -EINVAL;
|
||||
|
||||
for (i = fifo->num_s; i > 0; i--)
|
||||
for (i = fifo->num_s - 1; i > 0; i--)
|
||||
if (fifo->samples[i] != 0)
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue