summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-03-17 04:40:59 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-05 08:33:24 +0400
commit75e4fb221babbe329c1aba8c34092d29034f1545 (patch)
tree764badb19c87bf9e8f08573bf2d684a5924c4176 /drivers
parent0ce790e7d736cedc563e1fb4e998babf5a4dbc3d (diff)
downloadlinux-75e4fb221babbe329c1aba8c34092d29034f1545.tar.xz
staging: hv: fix reversed memset arguments in hv_mouse
size is 3rd arg, not the 2nd. Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/hv/hv_mouse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index 50147f84741c..cbe568616850 100644
--- a/drivers/staging/hv/hv_mouse.c
+++ b/drivers/staging/hv/hv_mouse.c
@@ -374,7 +374,7 @@ static void MousevscOnReceiveDeviceInfo(struct mousevsc_dev *InputDevice, struct
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);
@@ -595,7 +595,7 @@ static int MousevscConnectToVsp(struct hv_device *Device)
/*
* 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);