yangsong8 6a38c37702 pty: use mutex to protect alloc minor
If failed in pty_register2, it is possible to enter unregister_driver
function, which eventually calls ptmx_minor_free, resulting in mutex
conflict.

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2024-08-25 22:16:53 +08:00
..
2024-08-25 22:16:53 +08:00
2023-04-29 13:48:52 +08:00
2023-09-19 09:41:07 +08:00