On Thu, 7 Aug 2003 15:45:24 -0700
Stephen Hemminger [off-list ref] wrote:
This should fix module unload issues with tun driver in 2.6-test2.
Driver was not cleaning up it's devices on module exit.
The fix looks correct, but the dev->init test looks kind of grotty.
Why not add a list_head to tun_struct, and then maintain a list rooted
in 'tun.c:tun_alldevs_list', then iterate over that in the
module_exit() routine?