summaryrefslogtreecommitdiff
path: root/include/uapi/linux/byteorder
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-09-07 10:23:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-06 15:31:11 +0200
commit0c30a2b7c144dee1a2a6f33073a2266039304968 (patch)
treeb247a2e59972945ac4f6a19d2dac89c05dddaea9 /include/uapi/linux/byteorder
parent40a5f30822e6bb925757066d53514cf5a67362a3 (diff)
USB: cdc-acm: fix minor-number release
commit 91fac0741d4817945c6ee0a17591421e7f5ecb86 upstream. 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@vger.kernel.org # 4.19 Cc: Jaejoong Kim <climbbb.kim@gmail.com> Acked-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210907082318.7757-1-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/byteorder')
0 files changed, 0 insertions, 0 deletions