Re: [BUG]drivers: usb: serial: mos7840.c: dangling pointer in function mos7840_open

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 01, 2021 at 05:03:30PM +0800, nil Yi wrote:
> Hi, there is a dangling pointer in mos7840_port->write_urb_pool[j]  in function
> mos7840_open in v5.14-rc3.
> 
> in function mos7840_open err path :
> 
> 717: err:
> 718: for (j = 0; j < NUM_URBS; ++j) {
> 719: urb = mos7840_port->write_urb_pool[j];
> 720:  if (!urb)
> 721:     continue;
> 722: kfree(urb->transfer_buffer);
> 723:  usb_free_urb(urb);
> }
> 
> leave a dangling pointer here,  I'm not sure whether it  can be
> triggered somewhere.

What exactly do you mean by "dangling pointer"?  What specifically is
the bug here?

thanks,

greg k-h



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux