OSDN Git Service

ALSA: usb-audio: Fix invalid use of sizeof in parse_uac_endpoint_attributes()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 2 Aug 2018 04:31:02 +0000 (04:31 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 2 Aug 2018 05:26:37 +0000 (07:26 +0200)
commit11175556eec58b27a1398e80f8b1302314f2242c
treeb511d3cac1240e7afc3ff7e54c0c0e1ba954fd7d
parent93ce1b12966d9d60ee5583ffbde822a22909568e
ALSA: usb-audio: Fix invalid use of sizeof in parse_uac_endpoint_attributes()

sizeof() when applied to a pointer typed expression gives the
size of the pointer, not that of the pointed data.

Fixes: 7edf3b5e6a45 ("ALSA: usb-audio: AudioStreaming Power Domain parsing")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c