Re: [PATCH] usb: gadget: configfs: Restrict symlink creation if UDC already binded

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

 



On Wed, Jan 25, 2023 at 12:27:40PM +0530, Udipto Goswami wrote:
> During enumeration or composition switch, if a userspace process
> agnostic of the conventions of configs tries to create function symlink
> seven after the UDC is bound to current config which is not correct.
> Potentially it can create duplicates within the current config.

I'm sorry, but I can not parse this paragraph at all.

Exactly what is the problem here?  Is userspace doing something it
shouldn't?  If so, fix userspace, right?

> Prevent this by adding a check if udc_name already exists then bail
> out of cfg_link.

Why?  What will this help prevent if userspace already messed things up?

confused,

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