staging: hv: replace ASSERT() with WARN_ON() in NetVsc.c
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
972b9529cc
commit
7a09876d2a
@@ -92,7 +92,7 @@ static struct netvsc_device *AllocNetDevice(struct hv_device *Device)
|
|||||||
|
|
||||||
static void FreeNetDevice(struct netvsc_device *Device)
|
static void FreeNetDevice(struct netvsc_device *Device)
|
||||||
{
|
{
|
||||||
ASSERT(atomic_read(&Device->RefCount) == 0);
|
WARN_ON(atomic_read(&Device->RefCount) == 0);
|
||||||
Device->Device->Extension = NULL;
|
Device->Device->Extension = NULL;
|
||||||
kfree(Device);
|
kfree(Device);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user