Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268044
b: refs/heads/master
c: 2ef7714
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 29, 2011
1 parent 0d9ef1d commit 714a4c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: c38b9c7118b95aa48bfa38d3bcd241dba3d23c10
refs/heads/master: 2ef7714397cd49dc378e20afa6dd19306e5f2b5e
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ static struct netvsc_device *get_outbound_net_device(struct hv_device *device)
struct netvsc_device *net_device;

net_device = device->ext;
if (net_device && atomic_read(&net_device->refcnt) > 1)
if (net_device && (atomic_read(&net_device->refcnt) > 1) &&
!net_device->destroy)
atomic_inc(&net_device->refcnt);
else
net_device = NULL;
Expand Down

0 comments on commit 714a4c6

Please sign in to comment.