Re: [PATCH 4/4] um: vector: 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 vector_device instance. Otherwise, removing a vector device will result in a crash: RIP: 0033:vector_device_release+0xf/0x50 RSP: e187bc40 EFLAGS: 00010202 RAX: 000

[PATCH 4/4] um: vector: 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 vector_device instance. Otherwise, removing a vector device will result in a crash: RIP: 0033:vector_device_release+0xf/0x50 RSP: e187bc40 EFLAGS: 00010202 RAX: 60028f61 RBX: 600f1baf RCX: 00