> + for (i = c->argc; i < ARRAY_SIZE(c->argv); i++) { > + c->argv[i] = 0; > + }
I think the code filling c->argv (in usb_mtp_handle_data) should so that. Or just memset(0) cmd in usb_mtp_handle_data ... cheers, Gerd PS: the other patches are fine.
> + for (i = c->argc; i < ARRAY_SIZE(c->argv); i++) { > + c->argv[i] = 0; > + }
I think the code filling c->argv (in usb_mtp_handle_data) should so that. Or just memset(0) cmd in usb_mtp_handle_data ... cheers, Gerd PS: the other patches are fine.