Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
Browse files Browse the repository at this point in the history
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
  Staging: update TODO files
  Staging: hv: Fix some missing author names
  Staging: hv: Fix vmbus event handler bug
  Staging: hv: Fix argument order in incorrect memset invocations in hyperv driver.
  • Loading branch information
torvalds committed Dec 1, 2009
2 parents e272a18 + fb08808 commit 2127816
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 28 deletions.
1 change: 1 addition & 0 deletions drivers/staging/hv/BlkVsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Place - Suite 330, Boston, MA 02111-1307 USA.
*
* Authors:
* Haiyang Zhang <[email protected]>
* Hank Janssen <[email protected]>
*
*/
Expand Down
16 changes: 4 additions & 12 deletions drivers/staging/hv/Channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ void VmbusChannelClose(struct vmbus_channel *Channel)

/* Stop callback and cancel the timer asap */
Channel->OnChannelCallback = NULL;
del_timer(&Channel->poll_timer);
del_timer_sync(&Channel->poll_timer);

/* Send a closing message */
info = kmalloc(sizeof(*info) +
Expand Down Expand Up @@ -978,14 +978,10 @@ void VmbusChannelOnChannelEvent(struct vmbus_channel *Channel)
{
DumpVmbusChannel(Channel);
ASSERT(Channel->OnChannelCallback);
#ifdef ENABLE_POLLING
del_timer(&Channel->poll_timer);
Channel->OnChannelCallback(Channel->ChannelCallbackContext);
channel->poll_timer.expires(jiffies + usecs_to_jiffies(100);
add_timer(&channel->poll_timer);
#else

Channel->OnChannelCallback(Channel->ChannelCallbackContext);
#endif

mod_timer(&Channel->poll_timer, jiffies + usecs_to_jiffies(100));
}

/**
Expand All @@ -997,10 +993,6 @@ void VmbusChannelOnTimer(unsigned long data)

if (channel->OnChannelCallback) {
channel->OnChannelCallback(channel->ChannelCallbackContext);
#ifdef ENABLE_POLLING
channel->poll_timer.expires(jiffies + usecs_to_jiffies(100);
add_timer(&channel->poll_timer);
#endif
}
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/ChannelMgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static inline void ReleaseVmbusChannel(void *context)
*/
void FreeVmbusChannel(struct vmbus_channel *Channel)
{
del_timer(&Channel->poll_timer);
del_timer_sync(&Channel->poll_timer);

/*
* We have to release the channel's workqueue/thread in the vmbus's
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/hv/NetVsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Place - Suite 330, Boston, MA 02111-1307 USA.
*
* Authors:
* Haiyang Zhang <[email protected]>
* Hank Janssen <[email protected]>
*/
#include <linux/kernel.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/hv/NetVsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* Place - Suite 330, Boston, MA 02111-1307 USA.
*
* Authors:
* Haiyang Zhang <[email protected]>
* Hank Janssen <[email protected]>
*
*/
Expand Down
10 changes: 5 additions & 5 deletions drivers/staging/hv/StorVsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static int StorVscChannelInit(struct hv_device *Device)
* Now, initiate the vsc/vsp initialization protocol on the open
* channel
*/
memset(request, sizeof(struct storvsc_request_extension), 0);
memset(request, 0, sizeof(struct storvsc_request_extension));
request->WaitEvent = osd_WaitEventCreate();

vstorPacket->Operation = VStorOperationBeginInitialization;
Expand Down Expand Up @@ -233,7 +233,7 @@ static int StorVscChannelInit(struct hv_device *Device)
DPRINT_INFO(STORVSC, "QUERY_PROTOCOL_VERSION_OPERATION...");

/* 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->Flags = REQUEST_COMPLETION_FLAG;

Expand Down Expand Up @@ -266,7 +266,7 @@ static int StorVscChannelInit(struct hv_device *Device)
/* Query channel properties */
DPRINT_INFO(STORVSC, "QUERY_PROPERTIES_OPERATION...");

memset(vstorPacket, sizeof(struct vstor_packet), 0);
memset(vstorPacket, 0, sizeof(struct vstor_packet));
vstorPacket->Operation = VStorOperationQueryProperties;
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;
vstorPacket->StorageChannelProperties.PortNumber =
Expand Down Expand Up @@ -305,7 +305,7 @@ static int StorVscChannelInit(struct hv_device *Device)

DPRINT_INFO(STORVSC, "END_INITIALIZATION_OPERATION...");

memset(vstorPacket, sizeof(struct vstor_packet), 0);
memset(vstorPacket, 0, sizeof(struct vstor_packet));
vstorPacket->Operation = VStorOperationEndInitialization;
vstorPacket->Flags = REQUEST_COMPLETION_FLAG;

Expand Down Expand Up @@ -508,7 +508,7 @@ static int StorVscConnectToVsp(struct hv_device *Device)
int ret;

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 */
ret = Device->Driver->VmbusChannelInterface.Open(Device,
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Place - Suite 330, Boston, MA 02111-1307 USA.
*
* Authors:
* Haiyang Zhang <[email protected]>
* Hank Janssen <[email protected]>
*/
#include <linux/init.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Place - Suite 330, Boston, MA 02111-1307 USA.
*
* Authors:
* Haiyang Zhang <[email protected]>
* Hank Janssen <[email protected]>
*/
#include <linux/init.h>
Expand Down
3 changes: 1 addition & 2 deletions drivers/staging/rtl8187se/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ TODO:
- sparse fixes
- integrate with drivers/net/wireless/rtl818x

Please send any patches to Greg Kroah-Hartman <[email protected]> and
Bartlomiej Zolnierkiewicz <[email protected]>.
Please send any patches to Greg Kroah-Hartman <[email protected]>.
3 changes: 1 addition & 2 deletions drivers/staging/rtl8192su/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ TODO:
- sparse fixes
- integrate with drivers/net/wireless/rtl818x

Please send any patches to Greg Kroah-Hartman <[email protected]> and
Bartlomiej Zolnierkiewicz <[email protected]>.
Please send any patches to Greg Kroah-Hartman <[email protected]>.
5 changes: 2 additions & 3 deletions drivers/staging/vt6655/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ TODO:
- sparse fixes
- integrate with drivers/net/wireless

Please send any patches to Greg Kroah-Hartman <[email protected]>,
Forest Bond <[email protected]> and Bartlomiej Zolnierkiewicz
<[email protected]>.
Please send any patches to Greg Kroah-Hartman <[email protected]>
and Forest Bond <[email protected]>.
5 changes: 2 additions & 3 deletions drivers/staging/vt6656/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ TODO:
- sparse fixes
- integrate with drivers/net/wireless

Please send any patches to Greg Kroah-Hartman <[email protected]>,
Forest Bond <[email protected]> and Bartlomiej Zolnierkiewicz
<[email protected]>.
Please send any patches to Greg Kroah-Hartman <[email protected]>
and Forest Bond <[email protected]>.

0 comments on commit 2127816

Please sign in to comment.