|
@@ -180,6 +180,12 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,
|
|
}
|
|
}
|
|
alts = &iface->altsetting[fp->altset_idx];
|
|
alts = &iface->altsetting[fp->altset_idx];
|
|
altsd = get_iface_desc(alts);
|
|
altsd = get_iface_desc(alts);
|
|
|
|
+ if (altsd->bNumEndpoints < 1) {
|
|
|
|
+ kfree(fp);
|
|
|
|
+ kfree(rate_table);
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
fp->protocol = altsd->bInterfaceProtocol;
|
|
fp->protocol = altsd->bInterfaceProtocol;
|
|
|
|
|
|
if (fp->datainterval == 0)
|
|
if (fp->datainterval == 0)
|