diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2011-02-18 23:05:53 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-23 21:22:26 (GMT) |
commit | 31acaa50c6c61bfb486dacaa2ec62950a42de233 (patch) | |
tree | be19cd0c4187f8c6b64dcf1391823b1a45dda20d | |
parent | 6fbb47859faa88e7fca458497d9688e928e587e1 (diff) | |
download | linux-fsl-qoriq-31acaa50c6c61bfb486dacaa2ec62950a42de233.tar.xz |
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 f21a59d..20b15977 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); } |