Message ID | 20200402044521.9312-1-sallenki@codeaurora.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 1c2e54fbf1da5e5445a0ab132c862b02ccd8d230 |
Headers | show |
Series | [v2] usb: f_fs: Clear OS Extended descriptor counts to zero in ffs_data_reset() | expand |
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index c81023b195c3..10f01f974f67 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -1813,6 +1813,10 @@ static void ffs_data_reset(struct ffs_data *ffs) ffs->state = FFS_READ_DESCRIPTORS; ffs->setup_state = FFS_NO_SETUP; ffs->flags = 0; + + ffs->ms_os_descs_ext_prop_count = 0; + ffs->ms_os_descs_ext_prop_name_len = 0; + ffs->ms_os_descs_ext_prop_data_len = 0; }