Reply: A null-ptr crash in linux-6.4 usb driver

From: 柳菁峰
Date: Wed Nov 08 2023 - 02:40:31 EST


I have made a patch that simply checks for null pointer, but I am not sure if this will affect certain functions or logic. I hope you can check it carefully.

1006c1006
< if (dev->p->dead) {
---
> if (!dev->p||dev->p->dead) {



>Try it and see! You have the reproducer, so you are in the best position to work on this.