Skip to content

Commit 650db74

Browse files
Revert "ALSA: usb-audio: Fix potential overflow of PCM transfer buffer"
This reverts commit 5cdfabb.
1 parent 089dc4f commit 650db74

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

sound/usb/endpoint.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,11 +1284,6 @@ static int snd_usb_endpoint_set_params(struct snd_usb_audio *chip,
12841284
ep->sample_rem = ep->cur_rate % ep->pps;
12851285
ep->packsize[0] = ep->cur_rate / ep->pps;
12861286
ep->packsize[1] = (ep->cur_rate + (ep->pps - 1)) / ep->pps;
1287-
if (ep->packsize[1] > ep->maxpacksize) {
1288-
usb_audio_dbg(chip, "Too small maxpacksize %u for rate %u / pps %u\n",
1289-
ep->maxpacksize, ep->cur_rate, ep->pps);
1290-
return -EINVAL;
1291-
}
12921287

12931288
/* calculate the frequency in 16.16 format */
12941289
ep->freqm = ep->freqn;

0 commit comments

Comments
 (0)