mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
usb: gadget: legacy: audio: fix error parameter of sizeof
This patch fixes the issue that a pointer is used as the parameter
of sizeof.
Fixes: 9de5fa6df1 (FROMLIST: usb: gadget: f_uac*: Reduce code duplication)
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I66bfc58e71c498dd8a82f9b5045f851585e1f441
This commit is contained in:
@@ -225,7 +225,7 @@ static int audio_bind(struct usb_composite_dev *cdev)
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_GADGET_UAC1) || !defined(CONFIG_GADGET_UAC1_LEGACY)
|
||||
memset(uac_opts, 0x0, sizeof(uac_opts));
|
||||
memset(uac_opts, 0x0, sizeof(*uac_opts));
|
||||
uac_opts->p_chmask = p_chmask;
|
||||
uac_opts->p_srate[0] = p_srate;
|
||||
uac_opts->p_srate_active = p_srate;
|
||||
|
||||
Reference in New Issue
Block a user