Re: [PATCH 3/4] um: net: Do not use drvdata in release

2024-11-04 Thread Anton Ivanov
On 04/11/2024 16:32, Tiwei Bie wrote: The drvdata is not available in release. Let's just use container_of() to get the uml_net instance. Otherwise, removing a network device will result in a crash: RIP: 0033:net_device_release+0x10/0x6f RSP: e20c7c40 EFLAGS: 00010206 RAX: 60

[PATCH 3/4] um: net: Do not use drvdata in release

2024-11-04 Thread Tiwei Bie
The drvdata is not available in release. Let's just use container_of() to get the uml_net instance. Otherwise, removing a network device will result in a crash: RIP: 0033:net_device_release+0x10/0x6f RSP: e20c7c40 EFLAGS: 00010206 RAX: 6002e4e7 RBX: 600f1baf RCX: 6