size is 3rd arg, not the 2nd.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
desc->desc[0].wDescriptorLength);
/* Send the ack */
desc->desc[0].wDescriptorLength);
/* Send the ack */
- memset(&ack, sizeof(struct mousevsc_prt_msg), 0);
+ memset(&ack, 0, sizeof(struct mousevsc_prt_msg));
ack.type = PipeMessageData;
ack.size = sizeof(struct synthhid_device_info_ack);
ack.type = PipeMessageData;
ack.size = sizeof(struct synthhid_device_info_ack);
/*
* Now, initiate the vsc/vsp initialization protocol on the open channel
*/
/*
* Now, initiate the vsc/vsp initialization protocol on the open channel
*/
- memset(request, sizeof(struct mousevsc_prt_msg), 0);
+ memset(request, 0, sizeof(struct mousevsc_prt_msg));
request->type = PipeMessageData;
request->size = sizeof(struct synthhid_protocol_request);
request->type = PipeMessageData;
request->size = sizeof(struct synthhid_protocol_request);