Skip to content
Commit ae0e8e82 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

veth: prevent oops caused by netdev destructor



From: Stephen Hemminger <shemminger@vyatta.com>

The veth driver will oops if sysfs hooks are open while module is removed.

The net device destructor can not point to code in a module; basically
there are only two possible safe values: NULL - no destructor, or
free_netdev - free on last use

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a783c90
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment