Merge tag 'sound-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[deliverable/linux.git] / sound / usb / pcm.c
index b0370d5f33f819755053aabebe28547890795add..0e4e0640c50486b608b4a3df4c83b18fd11cae17 100644 (file)
@@ -160,6 +160,8 @@ static int init_pitch_v1(struct snd_usb_audio *chip, int iface,
        unsigned char data[1];
        int err;
 
+       if (get_iface_desc(alts)->bNumEndpoints < 1)
+               return -EINVAL;
        ep = get_endpoint(alts, 0)->bEndpointAddress;
 
        data[0] = 1;
This page took 0.035189 seconds and 5 git commands to generate.