diff options
| author | Vitaly Kuznetsov <[email protected]> | 2016-08-15 15:48:42 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-08-15 20:48:07 +0000 |
| commit | 0f20d795f78d182c4b743d880a5e8dc4d39892fe (patch) | |
| tree | 3ac000985b098e8b6ad0773d495570a00c6393a8 /net/tipc/socket.c | |
| parent | hv_netvsc: reset vf_inject on VF removal (diff) | |
| download | kernel-0f20d795f78d182c4b743d880a5e8dc4d39892fe.tar.gz kernel-0f20d795f78d182c4b743d880a5e8dc4d39892fe.zip | |
hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev
We're not guaranteed to see NETDEV_REGISTER/NETDEV_UNREGISTER notifications
only once per VF but we increase/decrease module refcount unconditionally.
Check vf_netdev to make sure we don't take/release it twice. We presume
that only one VF per netvsc device may exist.
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Acked-by: Haiyang Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions
