diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2011-02-18 15:05:53 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-23 13:22:26 -0800 |
commit | 31acaa50c6c61bfb486dacaa2ec62950a42de233 (patch) | |
tree | be19cd0c4187f8c6b64dcf1391823b1a45dda20d | |
parent | 6fbb47859faa88e7fca458497d9688e928e587e1 (diff) |
staging: hv: Fix the WARN_ON condition in free_net_device()
In a previous commit, 7a09876d, ASSERT was changed to WARN_ON, but
the condition wasn't updated. This patch fixed this error.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/hv/netvsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index f21a59db169..20b159775e8 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c @@ -95,7 +95,7 @@ static struct netvsc_device *alloc_net_device(struct hv_device *device) static void free_net_device(struct netvsc_device *device) { - WARN_ON(atomic_read(&device->refcnt) == 0); + WARN_ON(atomic_read(&device->refcnt) != 0); device->dev->ext = NULL; kfree(device); } |