Staging: hv: Fix argument order in incorrect memset invocations in hyperv driver.
Nearly every invocation of memset in drivers/staging/hv/StorVsc.c has its arguments the wrong way around. Signed-off-by: Dave Jones <davej@redhat.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a8a84540eb
commit
8c960e49d8
@@ -196,7 +196,7 @@ static int StorVscChannelInit(struct hv_device *Device)
|
|||||||
* Now, initiate the vsc/vsp initialization protocol on the open
|
* Now, initiate the vsc/vsp initialization protocol on the open
|
||||||
* channel
|
* channel
|
||||||
*/
|
*/
|
||||||
memset(request, sizeof(struct storvsc_request_extension), 0);
|
memset(request, 0, sizeof(struct storvsc_request_extension));
|
||||||
request->WaitEvent = osd_WaitEventCreate();
|
request->WaitEvent = osd_WaitEventCreate();
|
||||||
|
|
||||||
vstorPacket->Operation = VStorOperationBeginInitialization;
|
vstorPacket->Operation = VStorOperationBeginInitialization;
|
||||||
@@ -233,7 +233,7 @@ static int StorVscChannelInit(struct hv_device *Device)
|
|||||||
DPRINT_INFO(STORVSC, "QUERY_PROTOCOL_VERSION_OPERATION...");
|
DPRINT_INFO(STORVSC, "QUERY_PROTOCOL_VERSION_OPERATION...");
|
||||||
|
|
||||||
/* reuse the packet for version range supported */
|
/* reuse the packet for version range supported */
|
||||||
memset(vstorPacket, sizeof(struct vstor_packet), 0);
|
memset(vstorPacket, 0, sizeof(struct vstor_packet));
|
||||||
vstorPacket->Operation = VStorOperationQueryProtocolVersion;
|
vstorPacket->Operation = VStorOperationQueryProtocolVersion;
|
||||||
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
|
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
|
||||||
|
|
||||||
@@ -266,7 +266,7 @@ static int StorVscChannelInit(struct hv_device *Device)
|
|||||||
/* Query channel properties */
|
/* Query channel properties */
|
||||||
DPRINT_INFO(STORVSC, "QUERY_PROPERTIES_OPERATION...");
|
DPRINT_INFO(STORVSC, "QUERY_PROPERTIES_OPERATION...");
|
||||||
|
|
||||||
memset(vstorPacket, sizeof(struct vstor_packet), 0);
|
memset(vstorPacket, 0, sizeof(struct vstor_packet));
|
||||||
vstorPacket->Operation = VStorOperationQueryProperties;
|
vstorPacket->Operation = VStorOperationQueryProperties;
|
||||||
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
|
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
|
||||||
vstorPacket->StorageChannelProperties.PortNumber =
|
vstorPacket->StorageChannelProperties.PortNumber =
|
||||||
@@ -305,7 +305,7 @@ static int StorVscChannelInit(struct hv_device *Device)
|
|||||||
|
|
||||||
DPRINT_INFO(STORVSC, "END_INITIALIZATION_OPERATION...");
|
DPRINT_INFO(STORVSC, "END_INITIALIZATION_OPERATION...");
|
||||||
|
|
||||||
memset(vstorPacket, sizeof(struct vstor_packet), 0);
|
memset(vstorPacket, 0, sizeof(struct vstor_packet));
|
||||||
vstorPacket->Operation = VStorOperationEndInitialization;
|
vstorPacket->Operation = VStorOperationEndInitialization;
|
||||||
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
|
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
|
||||||
|
|
||||||
@@ -508,7 +508,7 @@ static int StorVscConnectToVsp(struct hv_device *Device)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
storDriver = (struct storvsc_driver_object *)Device->Driver;
|
storDriver = (struct storvsc_driver_object *)Device->Driver;
|
||||||
memset(&props, sizeof(struct vmstorage_channel_properties), 0);
|
memset(&props, 0, sizeof(struct vmstorage_channel_properties));
|
||||||
|
|
||||||
/* Open the channel */
|
/* Open the channel */
|
||||||
ret = Device->Driver->VmbusChannelInterface.Open(Device,
|
ret = Device->Driver->VmbusChannelInterface.Open(Device,
|
||||||
|
Reference in New Issue
Block a user