Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268381
b: refs/heads/master
c: 86c921a
h: refs/heads/master
i:
  268379: 81ad68f
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent e2af610 commit fc2e371
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d982042b9b62f3a966e7de5572fd30d131eb5357
refs/heads/master: 86c921af41f0d40ff9105a73fb20378440f0299f
5 changes: 4 additions & 1 deletion trunk/drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,10 @@ int netvsc_device_remove(struct hv_device *device)
hv_set_drvdata(device, NULL);
spin_unlock_irqrestore(&device->channel->inbound_lock, flags);

/* At this point, no one should be accessing netDevice except in here */
/*
* At this point, no one should be accessing net_device
* except in here
*/
dev_notice(&device->device, "net device safe to remove\n");

/* Now, we can close the channel safely */
Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/staging/hv/rndis_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ int rndis_filter_device_add(struct hv_device *dev,
void *additional_info)
{
int ret;
struct netvsc_device *netDevice;
struct netvsc_device *net_device;
struct rndis_device *rndisDevice;
struct netvsc_device_info *deviceInfo = additional_info;

Expand All @@ -710,10 +710,10 @@ int rndis_filter_device_add(struct hv_device *dev,


/* Initialize the rndis device */
netDevice = hv_get_drvdata(dev);
net_device = hv_get_drvdata(dev);

netDevice->extension = rndisDevice;
rndisDevice->net_dev = netDevice;
net_device->extension = rndisDevice;
rndisDevice->net_dev = net_device;

/* Send the rndis initialization message */
ret = rndis_filter_init_device(rndisDevice);
Expand Down Expand Up @@ -762,12 +762,12 @@ void rndis_filter_device_remove(struct hv_device *dev)

int rndis_filter_open(struct hv_device *dev)
{
struct netvsc_device *netDevice = hv_get_drvdata(dev);
struct netvsc_device *net_device = hv_get_drvdata(dev);

if (!netDevice)
if (!net_device)
return -EINVAL;

return rndis_filter_open_device(netDevice->extension);
return rndis_filter_open_device(net_device->extension);
}

int rndis_filter_close(struct hv_device *dev)
Expand Down

0 comments on commit fc2e371

Please sign in to comment.