summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/netvsc_drv.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2009-08-20 21:17:36 +0200
committerGreg Kroah-Hartman2009-09-15 21:01:58 +0200
commitee3d7ddfe54108e2e1e3259fb62ec085404c3a74 (patch)
treec4777e10194096f411a98908aa2cf90e4d1f2c7a /drivers/staging/hv/netvsc_drv.c
parentStaging: hv: coding style cleanups for VmbusApi.h (diff)
downloadkernel-qcow2-linux-ee3d7ddfe54108e2e1e3259fb62ec085404c3a74.tar.gz
kernel-qcow2-linux-ee3d7ddfe54108e2e1e3259fb62ec085404c3a74.tar.xz
kernel-qcow2-linux-ee3d7ddfe54108e2e1e3259fb62ec085404c3a74.zip
Staging: hv: typedef removal for VmbusApi.h
The function pointers still have ugly names, but the structures are now cleaned up. Note, a comment was added where the driver structure is pointing at a problem that needs to be fixed up later in the code. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/netvsc_drv.c')
-rw-r--r--drivers/staging/hv/netvsc_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index 9ea61b281ef4..bd11853b5c84 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -429,14 +429,14 @@ static int netvsc_start_xmit (struct sk_buff *skb, struct net_device *net)
num_frags = skb_shinfo(skb)->nr_frags + 1 + net_drv_obj->AdditionalRequestPageBufferCount;
/* Allocate a netvsc packet based on # of frags. */
- packet = kzalloc(sizeof(struct hv_netvsc_packet) + (num_frags * sizeof(PAGE_BUFFER)) + net_drv_obj->RequestExtSize, GFP_ATOMIC);
+ packet = kzalloc(sizeof(struct hv_netvsc_packet) + (num_frags * sizeof(struct hv_page_buffer)) + net_drv_obj->RequestExtSize, GFP_ATOMIC);
if (!packet)
{
DPRINT_ERR(NETVSC_DRV, "unable to allocate hv_netvsc_packet");
return -1;
}
- packet->Extension = (void*)(unsigned long)packet + sizeof(struct hv_netvsc_packet) + (num_frags * sizeof(PAGE_BUFFER)) ;
+ packet->Extension = (void*)(unsigned long)packet + sizeof(struct hv_netvsc_packet) + (num_frags * sizeof(struct hv_page_buffer)) ;
/* Setup the rndis header */
packet->PageBufferCount = num_frags;