diff options
| author | Johan Hovold <[email protected]> | 2021-09-07 10:23:18 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-09-14 10:33:40 +0200 |
| commit | 91fac0741d4817945c6ee0a17591421e7f5ecb86 (patch) | |
| tree | b97569403ea5fd415a50f7b655f2f912fabcc3b5 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 856e6e8e0f9300befa87dde09edb578555c99a82 (diff) | |
USB: cdc-acm: fix minor-number release
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: [email protected] # 4.19
Cc: Jaejoong Kim <[email protected]>
Acked-by: Oliver Neukum <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions