Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220450
b: refs/heads/master
c: eebfc60
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Oct 28, 2010
1 parent 136d8d6 commit 0805b81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: bceadddd92ceb4fd51e5e16c4f6699d8eb2e5604
refs/heads/master: eebfc6055aba312f8b620a58fe1c23471cdcd149
10 changes: 4 additions & 6 deletions trunk/drivers/staging/bcm/Bcmnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ static INT bcm_notify_event(struct notifier_block *nb, ULONG event, PVOID dev)
case NETDEV_REGISTER:
/* Increment the Reference Count for "veth0" */
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, "Register RefCount: %x\n",
atomic_read(&ndev->refcnt));
atomic_inc(&ndev->refcnt);
netdev_refcnt_read(ndev));
dev_hold(ndev);
break;

case NETDEV_UNREGISTER:
/* Decrement the Reference Count for "veth0" */
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, "Unregister RefCnt: %x\n",
atomic_read(&ndev->refcnt));
atomic_dec(&ndev->refcnt);
if((int)atomic_read(&ndev->refcnt) < 0)
atomic_set(&ndev->refcnt, 0);
netdev_refcnt_read(ndev));
dev_put(ndev);
break;
};
}
Expand Down

0 comments on commit 0805b81

Please sign in to comment.