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

From: gregkh@xxxxxxxxxxxxxxxxxxx
Date: Wed Nov 08 2023 - 02:54:11 EST


On Wed, Nov 08, 2023 at 07:40:08AM +0000, 柳菁峰 wrote:
> 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) {

Can you take a look at the file,
Documentation/process/submitting-patches.rst for how to properly
generate a patch? This does not give us any context to even know what
file you are changing.

Also, we have no context at all to even know what this is about at all,
what is this for?

confused,

greg k-h