Possible de-reference of private data using net_device
问题 I have a specific question regarding using net_device module in linux kernel. Lets address this code example please. When i init my device, i call alloc_netdev and provide it with the private data size , so it will properly allocate it. Now, What happens when i call snull_cleanup when i wish to stop using this device. i see it basically free's the structure (including the private data). The question is, what if the code currently running is an inside function inside my device module which