Re: [PATCH v2] USB: cdc-acm: fix minor-number release

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

 



On 07.09.21 10:23, Johan Hovold wrote:
> If the driver runs out of minor numbers it would release minor 0 and
> allow another device to claim the minor while still in use.
>
> Fortunately, registering the tty class device of the second device would
> fail (with a stack dump) due to the sysfs name collision so no memory is
> leaked.
>
> Fixes: cae2bc768d17 ("usb: cdc-acm: Decrement tty port's refcount if probe() fail")
> Cc: stable@xxxxxxxxxxxxxxx      # 4.19
> Cc: Jaejoong Kim <climbbb.kim@xxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
Acked-by: Oliver Neukum <oneukum@xxxxxxxx>




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

  Powered by Linux