[ALSA] usbaudio - Coping with short replies in usbmixer

This patch makes sure that short USB replies are treated as an
error when requesting the value of a certain mixer control.

Signed-off-by: Thomas Reitmayr <thomas@devbase.at>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

authored by Thomas Reitmayr and committed by Jaroslav Kysela a04395ea 8286c53e

+1 -1
+1 -1
sound/usb/usbmixer.c
··· 360 360 request, 361 361 USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, 362 362 validx, cval->mixer->ctrlif | (cval->id << 8), 363 - buf, val_len, 100) >= 0) { 363 + buf, val_len, 100) >= val_len) { 364 364 *value_ret = convert_signed_value(cval, snd_usb_combine_bytes(buf, val_len)); 365 365 return 0; 366 366 }