diff options
| author | Tianyu Lan <[email protected]> | 2022-02-08 14:26:52 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-02-09 11:54:05 +0000 |
| commit | b539324f6fe798bdb186e4e91eafb37dd851db2a (patch) | |
| tree | 61f3edc3f98447e276b670d0316ce547d13c3152 /net/switchdev/switchdev.c | |
| parent | Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/ne... (diff) | |
| download | kernel-b539324f6fe798bdb186e4e91eafb37dd851db2a.tar.gz kernel-b539324f6fe798bdb186e4e91eafb37dd851db2a.zip | |
Netvsc: Call hv_unmap_memory() in the netvsc_device_remove()
netvsc_device_remove() calls vunmap() inside which should not be
called in the interrupt context. Current code calls hv_unmap_memory()
in the free_netvsc_device() which is rcu callback and maybe called
in the interrupt context. This will trigger BUG_ON(in_interrupt())
in the vunmap(). Fix it via moving hv_unmap_memory() to netvsc_device_
remove().
Fixes: 846da38de0e8 ("net: netvsc: Add Isolation VM support for netvsc driver")
Signed-off-by: Tianyu Lan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
